properly conditionally load regexp_pattern for v5.10