input: from typing import List
  
  def extract_emails(text: str) -> List[str]:
      """ Extract all public email addresses from a given string.
      >>> extract_emails("My email is john@example.com and yours is john@gmail.com")
      ['john@example.com', 'john@gmail.com']
      >>> extract_emails("Contact us at info@website.com or sales@company.com")
      ['info@website.com', 'sales@company.com']
      """
output:     import re
      pattern = r'\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b'
      return re.findall(pattern, text)