from typing import Any
import re


def regex_method(term: str, key: str, value: Any) -> str:
    """ Map file search method 'regex' will return 'value' if regex pattern 'term' matches 'key'

    >>> regex_method(r"Hello (?:World|Werld|Squidward)", "Hello World", "squaids")
    'squaids'
    >>> regex_method("xxx", "Hello World", "squaids")
    ''
    """
    return value if re.search(term, key) else ""