pub fn regex_match(key1: &str, key2: &str) -> bool