import re

data = "Learning- Python, is fun. Python_programming is, easy"

res = re.sub('\W+|_',' ',data)

print(res)
c20c993eb0410e995e59926a3040f8ad61602f60
<mask token>

<mask token>
print(res)

<mask token>
data = 'Learning- Python, is fun. Python_programming is, easy'
res = re.sub('\\W+|_', ' ', data)
print(res)

import re
data = 'Learning- Python, is fun. Python_programming is, easy'
res = re.sub('\\W+|_', ' ', data)
print(res)

import re

data = "Learning- Python, is fun. Python_programming is, easy"

res = re.sub('\W+|_',' ',data)

print(res)