Pip install -e '.[dev]' ERROR

Hi I’m getting this error when running the pip install -e ‘.[dev]’ command
Does anyone have an idea why? I have tried some of the previous know solutions to no avail.
Thanks.

~/dev/indico/src$ pip install -e '.[dev]'
Obtaining file:///home/luis/dev/indico/src
  Preparing metadata (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /home/luis/dev/indico/env/bin/python3 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/luis/dev/indico/src/setup.py'"'"'; __file__='"'"'/home/luis/dev/indico/src/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-m68quiws
       cwd: /home/luis/dev/indico/src/
  Complete output (6 lines):
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/home/luis/dev/indico/src/setup.py", line 18
      return [dep for d in f.readlines() if (dep := d.strip()) and not (dep.startswith(('-', '#')) or '://' in dep)]
                                                 ^
  SyntaxError: invalid syntax
  ----------------------------------------
WARNING: Discarding file:///home/luis/dev/indico/src. Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Solved , just needed to use newer setup.py version