DEFAULT_MAX_PATTERN_LENGTH

The longest regex pattern the evaluator will hand to Regex.

Backtracking blow-up is not something this can prevent — (a+)+$ against a long subject is quadratic or worse on every platform's engine, and no bound on either length makes a hostile pattern safe. What these do is cap how bad it gets, and they are the reason a renderer should treat catalogue functions as running on agent-controlled input rather than as pure formatting.