added regex collection to the naive query planner so that you can do the canidate check, also added a flag to regex to check inversion of the regex do to being nested in a not clause