### Summary

I'm packaging ansible-core for OpenIndiana.  During the construction of 2.15.0 package I noticed the `test_importlib_resources` test fails if there is already ansible/ansible_collections installed.

### Issue Type

Bug Report

### Component Name

test_collection_loader.py

### Ansible Version

```console
2.15.0
```


### Configuration

```console
NA
```


### OS / Environment

OpenIndiana Hipster

### Steps to Reproduce

Run tests in a working directory with `ansible` already installed.

### Expected Results

All tests pass.

### Actual Results

```console
___________________________ test_importlib_resources ___________________________
[gw2] sunos5 -- Python 3.9.16 /usr/bin/python3.9
@pytest.mark.skipif(not PY3, reason='importlib.resources only supported for py3')
    def test_importlib_resources():
        if sys.version_info < (3, 10):
            from importlib_resources import files
        else:
            from importlib.resources import files
        from pathlib import Path

        f = get_default_finder()
        reset_collections_loader_state(f)

        ansible_collections_ns = files('ansible_collections')
        ansible_ns = files('ansible_collections.ansible')
        testns = files('ansible_collections.testns')
        testcoll = files('ansible_collections.testns.testcoll')
        testcoll2 = files('ansible_collections.testns.testcoll2')
        module_utils = files('ansible_collections.testns.testcoll.plugins.module_utils')

        assert isinstance(ansible_collections_ns, _AnsibleNSTraversable)
        assert isinstance(ansible_ns, _AnsibleNSTraversable)
        assert isinstance(testcoll, Path)
        assert isinstance(module_utils, Path)

        assert ansible_collections_ns.is_dir()
        assert ansible_ns.is_dir()
        assert testcoll.is_dir()
        assert module_utils.is_dir()
    
        first_path = Path(default_test_collection_paths[0])
        second_path = Path(default_test_collection_paths[1])
        testns_paths = []
        ansible_ns_paths = []
        for path in default_test_collection_paths[:2]:
            ansible_ns_paths.append(Path(path) / 'ansible_collections' / 'ansible')
            testns_paths.append(Path(path) / 'ansible_collections' / 'testns')

        assert testns._paths == testns_paths
>       assert ansible_ns._paths == ansible_ns_paths
E       AssertionError: assert [PosixPath('/...ons/ansible')] == [PosixPath('/...ons/ansible')]
E         Left contains one more item: PosixPath('/usr/lib/python3.9/vendor-packages/ansible_collections/ansible')
E         Full diff:
E           [
E            PosixPath('$(BUILD_DIR)/test/units/utils/collection_loader/fixtures/collections/ansible_collections/ansible'),
E            PosixPath('$(BUILD_DIR)/test/units/utils/collection_loader/fixtures/collections_masked/ansible_collections/ansible'),
E         +  PosixPath('/usr/lib/python3.9/vendor-packages/ansible_collections/ansible'),
E           ]

test/units/utils/collection_loader/test_collection_loader.py:868: AssertionError
```

The package is being build in a working directory - `$(BUILD_DIR)` - while there is already [ansible_collections](https://pypi.org/project/ansible/) and previous version of `ansible-core` (version 2.14.5) installed in `/usr/lib/python3.9/vendor-packages` via the package manager.
```


### Code of Conduct

- [X] I agree to follow the Ansible Code of Conduct
expected_subdirs, expected_resource, expected_python_pkg_name):
    assert AnsibleCollectionRef.is_valid_fqcr(ref, ref_type)
    r = AnsibleCollectionRef.from_fqcr(ref, ref_type)
    assert r.collection == expected_collection
    assert r.subdirs == expected_subdirs
    assert r.resource == expected_resource
    assert r.n_python_package_name == expected_python_pkg_name
    r = AnsibleCollectionRef.try_parse_fqcr(ref, ref_type)
    assert r.collection == expected_collection
    assert r.subdirs == expected_subdirs
    assert r.resource == expected_resource
    assert r.n_python_package_name == expected_python_pkg_name
@pytest.mark.parametrize(
    ('fqcn', 'expected'),
    (
        ('ns1.coll2', True),
        ('ns1#coll2', False),
        ('def.coll3', False),
        ('ns4.return', False),
        ('assert.this', False),
        ('import.that', False),
        ('.that', False),
        ('this.', False),
        ('.', False),
        ('', False),
    ),
)
def test_fqcn_validation(fqcn, expected):