fn validate_hex_string(s: &str, span: &AstSpan) -> Result<(), CodegenError>
Validates that a string contains only hexadecimal characters