import pathlib


def utils_files_find(path:pathlib.Path, pattern, num=1):
    """find files in `path` by regex rules specified by `pattern`""" 

    files = sorted(path.rglob(pattern))
    return files