<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def parse_date(date_str: str, pattern=_RE_DATE) -> dt.date: """Parse datetime.date from YYYY-MM-DD format."""


    groups = re.match(pattern, date_str)

    return dt.date(*_date_to_tuple(groups.groupdict()))