input: Write a python function to scrub a list of emails for invalid entries.
  assert scrub_emails(['test.email@gmail.com', 'invalid-email', 'user@domain.com']) == ['test.email@gmail.com', 'user@domain.com']
  assert scrub_emails(['user@domain.com', 'user@domain..com', 'another@domain.com']) == ['user@domain.com', 'another@domain.com']
  assert scrub_emails(['invalid@domain', '@nouser.com', 'valid.email@domain.com']) == ['valid.email@domain.com']
output: def scrub_emails(emails):
      import re
      valid_email_pattern = re.compile(r'^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$')
      return [email for email in emails if valid_email_pattern.match(email)]