Arithmetic Formatter

I am trying to test my code but each I keep getting an error:

 python3 main.py
Traceback (most recent call last):
File “main.py”, line 7, in
print(arithmetic_arranger([“32 + 698”, “3801 - 2”, “45 + 43”, “123 + 49”]))
File “/home/runner/boilerplate-arithmetic-formatter-2/arithmetic_arranger.py”, line 16, in arithmetic_arranger
if(re.search([‘^\s0-9.±’], problem)):
File “/nix/store/2vm88xw7513h9pyjyafw32cps51b0ia1-python3-3.8.12/lib/python3.8/re.py”, line 201, in search
return _compile(pattern, flags).search(string)
File “/nix/store/2vm88xw7513h9pyjyafw32cps51b0ia1-python3-3.8.12/lib/python3.8/re.py”, line 294, in _compile
return _cache[type(pattern), pattern, flags]
TypeError: unhashable type: ‘list’

how can I go about it?

Without being able to see the full project code, it is difficult to help. Please post a link to your replit.

Thank you.

arithmetic_arranger.py - boilerplate-arithmetic-formatter (2) - Replit

That is my replit link

re.search(['^\s0-9.+-'], problem)

The following is not proper syntax for a regular expression:

['^\s0-9.+-']

I assume you meant to write:

r`[^\s0-9.+-]`

Thanks let me change that