pub fn format_severity(s: &str, use_color: bool) -> String
Format a severity string with optional ANSI colors.