[0-9]+; [0-9]+ [0-9]+ SCHEMA - \b(information-schema|(?!pg_))\w+\b [a-zA-Z]+There were a couple of problems in your pattern
\w = [A-Za-z0-9_]
(2) You need both the anchors ^ and $ otherwise you may have a match of any sequence of chars in the string(?!not this)(?!and not that)