How to query for #tag but not [[tag]]?

Hi, I’m very new to Logseq, and although I’ve tried following the documentation and searching through the forum, I can’t seem to make this work.

Here’s a screenshot that I hope will illustrate my problem.

Any guidance will be greatly appreciated.

Cheers!