add ``regexp_matches`` scalar function implementation

will be used at unit tests, also there is no reason why to keep this private afaik