def get_uid_warning(uid: str) -> str:
    """
    Returns the templated message for the warning of existing `UID`,
    while creating a `Student`
    """
    uid_href = f"/students/{uid}/#:~:text={uid}"

    msg = f"Student with UID <a class=\"alert-link text-secondary font-weight-medium text-decoration-none\"\
            href=\"{uid_href}\" target=\"_blank\">{uid}</a> already exists.. maybe you mistyped!"
    return msg