def METHOD_NAME(self, text: str, pos: int) -> typing.Tuple['QValidator.State', str, int]:
    if re.search(self.ESCAPE_CHARS_REGEX, text):
        return QValidator.Intermediate, text, pos
    return QValidator.Acceptable, text, pos