import re


def __extract_personal_access_token_from_repo_url(repo_url: str) -> str:
    """
    :param repo_url: a string of the format: ``https://<personal_access_token>@github.com/<owner>/<repo name>.git``
    :return: the value of ``<personal_access_token>``
    """
    return re.findall(r'https:\/\/(.*)@', repo_url)[0]