add ``regexp_matches`` scalar function implementation

can this one be private / internal?