import re def is_email(identifier: str) -> bool: return re.match(r"[^@]+@[^@]+\.[^@]+", identifier) is not None