Filtering in projects: exclude notes with references

In order to filter a project board for cards that aren’t notes, the filter commands
can be used (the leading dash is the “not”). That works fine, except for those notes that contain #-references to issues. Why? How can these notes be excluded when filtering?
Many thanks for advice.