dregex is a Java library that implements a regular expression engine using deterministic finite automata (DFA). It supports some Perl-style features and yet retains linear matching time, and also offers set operations.
Why do you think that https://github.com/scala/scala3 is a good alternative to dregrex