### Summary

Please add more filters based on os.path, specifically: `os.path.commonpath`, `os.path.normpath`. It is cheap, but would be handy in such tasks as validation, archive management, programmatic path generation. Can replace a lot of loops and regex filters.

### Issue Type

Feature Idea

### Component Name

core

### Additional Information

none

### Code of Conduct

- [X] I agree to follow the Ansible Code of Conduct
"""
    Retrieve the longest common path from the given list.
    :param paths: A list of file system paths.
    :type paths: List[str]
    :returns: The longest common path.
    :rtype: str
    """
    if not is_sequence(paths):
        raise AnsibleFilterTypeError("|path_join expects sequence, got %s instead." % type(paths))
    return os.path.commonpath(paths)
class FilterModule(object):
    ''' Ansible core jinja2 filters '''
    def filters(self):
        return {
            
            'b64decode': b64decode,
            'b64encode': b64encode,
            
            'to_uuid': to_uuid,
            
            'to_json': to_json,
            'to_nice_json': to_nice_json,
            'from_json': json.loads,
            
            'to_yaml': to_yaml,
            'to_nice_yaml': to_nice_yaml,