import re


def remove_custom_pattern(text, term_pattern):
    """Remove Custom Pattern

    Params
    ------
    text: string
    term_pattern:pattern or term to remove

    """
    result = re.sub(term_pattern, " ", text)
    return result