Test, validate and match regular expressions
Matches @-mentions that consist of one or two words, with optional whitespace between them. Captures the mentioned name or handle as a single group, allowing for multi-word names. Commonly used for parsing social media mentions, chat commands, or notification systems. The word boundary ensures it matches whole words.