<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _init_name_core(self, name: str):
 """Runs whenever a new instance is initialized or `sep` is set."""

        self.__regex = re.compile(rf'^{self._pattern}$')
        self.name = name