from typing import List
import re


def regex_string_list(sl: List[str]):
    """
    Compile a list of strings into a regular expression.
    """
    return re.compile("|".join(["(?:%s)" % el for el in sl]))