human
Regular expression matching all but a string
assistant
Here is some code to regular expression matching all but 'aa' and 'bb'

re.findall('-(?!aa|bb)([^-]+)', string)

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.