pub fn extract_regex_matches(pattern: &str, input: &str) -> Option<Vec<String>>
Extracts matched substrings for a valid pattern.