Unfortunately this validation isn't entirely complete. Clients
can have exceptions trying to evaluate the pattern if they don't
support a token used, even if the server does support the token.

At the minimum, we can trap problems related to unmatched groups.