<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def regex_from_markers(markers):
 """Given a string of characters, construct a regex that matches them. Parameters markers: str The list of string containing the markers Returns ------- regex The regular expression matching the given markers. """

    return re.compile('|'.join([re.escape(c) for c in markers]))