### Summary

Running `ansible-doc -t test uri` produces
```
ERROR! test ansible.builtin.uri missing documentation (or could not parse documentation): No documentation availalbe for ansible.builtin.uri (/path/to/ansible/lib/ansible/plugins/test/uri.py)
```
It tries to look at `uri.py` instead of `uri.yml` in the same directory.

Listing the tests shows that filter correctly, `--metadata-dump` does not.

This happens both with #78700 and without #78700. #77737 also demonstrates this.

### Issue Type

Bug Report

### Component Name

ansible-doc

### Ansible Version

```console
devel branch
#78700
```


### Configuration

```console
-
```


### OS / Environment

-

### Steps to Reproduce

-

### Expected Results

-

### Actual Results

```console
-
```


### Code of Conduct

- [X] I agree to follow the Ansible Code of Conduct
fragments = doc.pop('extends_documentation_fragment', [])
    if isinstance(fragments, string_types):
        fragments = [fragments]
    unknown_fragments = []
    
    
    
    
    
    for fragment_slug in fragments:
        fragment_name = fragment_slug
        fragment_var = 'DOCUMENTATION'
        fragment_class = fragment_loader.get(fragment_name)
        if fragment_class is None and '.' in fragment_slug:
            splitname = fragment_slug.rsplit('.', 1)
            fragment_name = splitname[0]
            fragment_var = splitname[1].upper()
            fragment_class = fragment_loader.get(fragment_name)
        if fragment_class is None:
            unknown_fragments.append(fragment_slug)
            continue
        fragment_yaml = getattr(fragment_class, fragment_var, None)
        if fragment_yaml is None:
            if fragment_var != 'DOCUMENTATION':
                
                unknown_fragments.append(fragment_slug)
                continue
            else:
                fragment_yaml = '{}'