pub fn compound_extension(input: &str) -> Option<String>
Extracts a supported compound extension from a file name or path-like input.