pub fn split_wildcard_pattern(pattern: &str) -> Result<(String, String)>
Split a wildcard pattern into prefix and suffix
Returns an error if the pattern contains multiple wildcards (not supported).