Groups a sequence of patterns into a single Regex where every capture group is identified by its token type (name). The result is cached so that repeated calls with the same patterns reuse the compiled Regex.
Return
a single Regex that captures all groups.