import re


def strip_color(inp: str) -> str:
    """
    Remove ANSI color/style sequences from a string. May not catch obscure codes used outside this module.

    :param inp: the string to strip
    :return: ``inp`` with ansi codes removed
    """
    return re.sub('\x1b\\[(K|.*?m)', '', inp)