import re


def format_decorators(source_lines: list) -> list:
    """
    Tidies up decorators, removing unneeded syntax for docs
    :param source_lines: Source code lines of a function
    :return: List of tidy decorators for doc
    """
    raw_step_decorators = [line for line in source_lines if re.match(r'@[a-z]+\(', line)]
    step_decorators = []
    for step_decorator in raw_step_decorators:
        step_decorator = step_decorator.replace("('", '  ')
        step_decorator = step_decorator.replace("')", '  ')
        step_decorator = step_decorator.replace('\\', '')
        step_decorators.append(step_decorator)
    return step_decorators