from typing import List
import re


def extract_regex_pattern(section_list: List[str], pattern: str):
    """
    Extract list of section names that match the specified regex pattern.

    :param section_list: list of section names to search in
    :param pattern: regex pattern to search for
    :return: List of extracted section names
    """
    r = re.compile(pattern, re.IGNORECASE)
    extracted_list = list(filter(r.match, section_list))
    # remaining_list = list(set(section_list) - set(extracted_list))

    return extracted_list