refactor: updated for the new regex parser API in the sregex library. we now get better error message when there is a syntax error in the user regex patterns.