at the moment parenthesis support is not done, also NOT flags are not done.
already had too much pain trying to write 3 different solutions to the tag query language. the current one is a bunch of regex, lmao.
maybe some kind of compiler with AST that targets SQL would be a better architecture for the query language's needs? not sure.