<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def remove_punctuation(text, exceptions=[]):
 """ Return a string with punctuation removed. Parameters: text (str):
 The text to remove punctuation from. exceptions (list):
 List of symbols to keep in the given text. Return: str: The input text without the punctuation. """


    all_but = [
        r'\w',
        r'\s'
    ]

    all_but.extend(exceptions)

    pattern = '[^{}]'.format(''.join(all_but))

    return re.sub(pattern, '', text)