Nice! I make heavy use of subtags, and only want files that match the “theme” of the current file (so ignore other tags about type, or editing/publishing stage, etc). So I use this: file.tags.containsAny(this.tags.filter(value.contains("theme")))
For a note that has a theme tag of #theme/product, for example I then get all notes with nested tag and all sub-tags as well, so something like this