REGEXP_MATCHES
Extracts the parts of a string that match a regular expression.
Syntax
REGEXP_MATCHES(<text>, '<pattern>')
REGEXP_MATCHES(<text>, '<pattern>', '<flags>')
Returns an array of what it found: if the pattern has bracketed groups, there's one element per group. Without the 'g' flag it finds only the first match; with it — all of them, and each match becomes a separate row of the result. To simply get the first match as text, REGEXP_SUBSTR is easier.