<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _construct_regex(cls, fmt):
 """Given a format string, construct the regex with class attributes."""

        return re.compile(fmt.format(**vars(cls)), flags=re.U)