import re


def check_surrounding_chars(text, surrounding_chars):
    """
    Count the number of times a character is surrounded by
    characters from the surrounding_chars list.

    text: UTF-8 compliant input text
    surrounding_chars: List of characters
    """
    corrected_chars = []
    
    for char in surrounding_chars:
        if char in '<([{\\^-=$!|]})?*+.>':
            corrected_chars.append(f'\\{char}')
        else:
            corrected_chars.append(char)
            
    check_surrounding = re.findall(rf'(?<=[{"".join(corrected_chars)}])([\s\S])(?=[{"".join(corrected_chars)}])', text)
        
    return len(check_surrounding)