import re


def is_file(value) -> bool:
    """Return True if the input looks like a file."""
    FILE_REGEX = re.compile(
        r"""^.*\.(yaml|yml|json)$""",
        re.VERBOSE,
    )
    return bool(FILE_REGEX.match(value))