import re


def run_extra(answer: str, grade: float, max_grade: float, feedback: str, regex: str):
    """
    Run an extra job if all others are correct.

    :param answer: Answer.
    :param grade: Current grade for the answer.
    :param max_grade: Max grade for the answer.
    :param feedback: Current feedback for the answer.
    :param regex: Regex to match against.
    :return: Modified grade and feedback.
    """
    if round(grade, 1) == max_grade:
        match = re.search(regex, answer)

        if match:
            grade += 0.1
            feedback += "Верно.\n"
        else:
            feedback += "Что-то лишнее.\n"

    return grade, feedback