Currently the only repro I know is matching a text that has many \n characters in sequence, and matching it with (?:\t|\s|\n|\r)* (seems like the character \s is the culprit)
Edit: I realized my regex was checking duplicate items. i.e: \s already means "all whitespaces", not just "space" (what I thought it was). So using just \s* doesn't cause a crash.
But still it shouldn't crash because of a wrong regex.