Nested tags: how many level can I filter in Bases?

What I’m trying to do

I am trying to filter nested tags but limit to a sub-parent subparent in a three level nesting:
parent/subparent/child1
parent/subparent/child2

Things I have tried

file.hasTag("subparent") returns nothing
file.hasTag("parent") returns every tag with parent parent tag

You could do:

file.tags.filter(value.startsWith("#parent/subparent/"))