Using Tasks plugin i want to filter returned tasks based on correspondence with frontmatter field "tasks" in current note

What I’m trying to do

using Tasks plugin i want to filter returned tasks based on correspondence with frontmatter field “tasks” in current note. should be simple enough, but can’t seem to get it to work

Things I have tried

this:
TASK
FROM “”
WHERE file.path !=this.path AND contains(text, “#LooseEnds”)
works. however i want the “LooseEnds” part to be dynamic, be linked to the value in the fm field tasks