pub fn create_regex(regex_str: &str) -> Result<Regex, ValidationError>