@classmethod
def format(cls, message):
    """
        Format the given message with the colors, always ending with a
        reset escape sequence.

        .. param: message

        The to-be-colorized message. Use the colors prefixed with a dollar
        sign, e.g. ``Colors.format(f'$RED{somevar}$RESET')``

        """
    for k, v in cls.__dict__.items():
        if not isinstance(v, str) or v[1] != '[':
            continue
        message = message.replace('$' + k, v)
    return message + cls.RESET
