import glob


def search(dirname, searchKey):
    """
    Searches for files in a given directory,
        can use regex wildcards or be given an explicit filepath to look for.
    Wildcard examples:
        *, returns every file.
        *.ext, returns every file of given extension
        [range], searches for numbers in range
    Returns:
        files: list of file paths
    """
    files = glob.glob(f'{dirname}{searchKey}')
    return files