pub fn validate_regex(pattern: &str) -> RegexValidation
Checks whether a regex pattern compiles successfully.