If a versioned model is nested in one or more subdirectories, it can't be selected by name, v{v}, etc.
Expected behavior:
dbt list -s dim_customers --> all
dbt list -s dim_customers.* --> all
dbt list -s dim_customers.v1 --> v1 only
dbt list -s *.v1 --> any model with v1
Current behavior:
None of the above work, but it does work when I add in the * wildcards:
dbt ls -s *.dim_customers.* --> all
dbt ls -s *.dim_customers.v1 --> v1 only
Weirdly, I could've sworn this was working when I was trying out #7287. Worth adding some tests. Realized that this only happens for a model defined in a subdirectory, rather than top-level in the models/ folder.