Named regexes (variables in Pomsky) remind me of Raku [1], which implements an improved flavor of PCRE regexes plus grammars in general as part of the language.
The grammars as part of the language is probably the most interesting thing about Raku to me. Never seen that in another language as a core concept like that.