import re


def deslugify(name: str) -> str:
    """Deslugify function for player names from DDNet
    rewritten from:
    https://github.com/ddnet/ddnet-scripts/blob/203fcb4241261ae8f006362303723e4546e0e7f7/servers/scripts/ddnet.py#L177

    :type name: str
    :return:
    """
    for special_char in re.findall('(-([\d]+)-)', name):
        name = name.replace(special_char[0], chr(int(special_char[1])))
    return name