Thrown when a caller-supplied regex pattern is rejected by the guard.
Callers that want the rejection to surface as a validation error
(rather than a thrown exception terminating the whole run) should
catch this and turn it into their own error/result shape.
Thrown when a caller-supplied regex pattern is rejected by the guard. Callers that want the rejection to surface as a validation error (rather than a thrown exception terminating the whole run) should catch this and turn it into their own error/result shape.