pub fn matches_pattern(s: &str, pattern: &str) -> bool
Validates that a string matches a regex pattern.