pub fn extension(input: &str) -> Option<String>
Extracts the last simple extension from a file name or path-like input.