pub fn is_valid_key(s: &str) -> bool
Check if a key string is valid (for validation without full parsing).