Proposal to replace documented syntax for telephone extensions

Here are some examples of popular software libraries for detecting, parsing, and formatting phone numbers:

These libraries are used very widely across the software landscape and would be very unlikely to add any special affordances for an OSM-specific format. Some of them have live demos that you can use to prototype potential syntaxes.