add ``regexp_matches`` scalar function implementation

can literal.value() return null here?