Test, validate and match regular expressions
Matches instruction-like patterns enclosed in `%()` delimiters, supporting variable names, function calls, assignments, and property access within. It captures template directives or macros containing word characters, whitespace, dollar signs, parentheses, equals signs, and dots. Useful for detecting and parsing instruction blocks in template engines or domain-specific languages.