def remove_inner_forks(text):
n = <NUM_LIT:1>  <EOL>while n:<EOL><INDENT>text, n = re.subn(r'<STR_LIT>', '<STR_LIT>', text)<EOL><DEDENT>return text<EOL>
Recursively removes nested brackets

    This function is used to remove nested brackets from fork strings using
    regular expressions

    Parameters
    ----------
    text: str
        The string that contains brackets with inner forks to be removed

    Returns
    -------
    text: str
        the string with only the processes that are not in inner forks, thus
        the processes that belong to a given fork.