pub fn wildcard_to_regex(pattern: &str) -> String
Converts a wildcard pattern into an anchored regex string.