Test, validate and match regular expressions
Splits TypeScript variable declarations at the type annotation colon on each line. The named group 'variable' captures the declaration part before the colon (e.g., 'let myVar'), while 'tipo' captures the colon plus the type (e.g., ': string'). Commonly used for parsing or transforming TypeScript type annotations, though the permissive dot and negated character class mean it can also match colon-less lines.