Grammar validity does not execute or benchmark a pattern
Validation answers a syntax question, not a performance or correctness question. A valid expression may still be inefficient, overbroad, unsupported by an older browser, or wrong for the intended data.
The parser checks duplicate and incompatible flags, Unicode and Unicode-sets grammar, group structure, quantifier placement, property escapes, and other syntax before any matching runtime is invoked.