Why this one cannot hang your browser
A JavaScript regular expression cannot be interrupted. Once the engine starts backtracking there is no timeout and no way to abort, which is why so many online regex testers freeze the tab on a pattern like (a+)+$ tested against a long run of the same character. That pattern asks the engine to try an exponential number of ways to split the input, and on thirty characters it is already about a billion attempts.
So the match runs in a Web Worker - a second thread - with a one-second watchdog on the main thread. If the worker has not answered by then it is terminated outright, which is the only mechanism in the platform that can stop a runaway regex, and the result is reported as a finding rather than an error. That finding is worth having: the same pattern would pin a CPU in production, which is the ReDoS class of vulnerability, and most testers will simply die rather than tell you.