IIRC, regex can be implemented by an NFA which can't solve balanced parentheses that are part of regex syntax.
One is CS definition of regular expression matcher for regular languages. The other is extension of that into non-regular languages, typically PCRE compatible.