import re
# remove somente os colchetes
res = re.sub(r'[\[\]]', "", "[5/6]")
print(res)