Excluding multiple sections in a YML selector

I’m trying to deepen my understanding of YAML seletors but I still can’t find a good explanation in the docs as to why this isn’t working:

- name: test_selector
  definition:
    union:
      - "models/base/test"
      - "models/base/test2"
      - exclude:
        - intersection:
          - method: selector
            value: abc
          - method: path
            value: "path:models/base/test/xyz"

Everything is working apart from the exclusion of the XYZ, any ideas how to fix it?

Vlaue passed to the path method is not correct. Please try the below code

- name: test_selector
  definition:
    union:
      - "models/base/test"
      - "models/base/test2"
      - exclude:
        - intersection:
          - method: selector
            value: abc
          - method: path
            value: models/base/test/xyz

Unfortunately this also doesn’t work