import re


def add_hit_symbols(text, search, symbol='_'):
    """Use re to find matches and insert hit symbols."""
    find = f'({search})'
    replace = f'{symbol}\g<1>{symbol}'
    return re.sub(find, replace, text)