Returns a BSONRegex
Returns a BSONRegex
Extracts the regex value and flags if that's a BSONRegex.