import regex
print(regex.sub('(?V1)[\\W--[-]]', ' ', 'black-white'))
print(regex.sub('(?V1)[\\W--[-]]', ' ', 'black#white'))
How to replace all \W (none letters) with exception of '-' (dash) with regular expression?