Test, validate and match regular expressions
This regex matches text enclosed in dollar signs (`$...$`) containing letters, underscores, backslashes, curly braces, equals signs, spaces, pluses, and single quotes. It ensures the match is preceded by a non-word character using a positive lookbehind, preventing false positives within larger words. This is particularly useful for extracting custom templating tags, pseudo-code blocks, or specific inline formatting syntax.