Formats a phone number according to the specified format.
The phone number string or ParsedPhoneNumber to format
The desired output format
Parsing options (only used if input is a string)
The formatted phone number string, or empty string if invalid
Formats a phone number according to the specified format.