add ``regexp_matches`` scalar function implementation

I think unit tests work fine if it is internal. Otherwise you could use an injector in the unit test