Weird query behavior

I want to create some queries for my gtd page. But the “not” filter doesn’t seem to work…
Does anyone have an idea what I am doing wrong?
this is the query I have here: {{query (and (task TODO) (not [[Routines]] (page [[templates]])))}}