regex Callableregex(): InstanceSchema<null | RegExp>Create a schema that validates a value is a regex pattern (instance of RegExp).
Create a schema that validates a value is a regex pattern (instance of
RegExp
).