Pattern to detect email-like text preceding an @ symbol.
If the character immediately before @ matches this pattern, the @mention
is likely part of an email address (e.g., user@example.com) rather than
a file reference.
EMAIL_PREFIX_PATTERN = re.compile('[a-zA-Z0-9._%+-]$')