Nipype error when parallelizing with SLURM: IndexError: list index out of range

Error documented here: https://github.com/lnnrtwttkhn/highspeed-fast-preproc/issues/2.

Code here: https://github.com/lnnrtwttkhn/highspeed-fast-preproc/blob/feature/parcellation/code/highspeed-fast-preproc.py

240730-12:34:36,195 nipype.workflow INFO:
         Submitting: preproc.selectfiles ID: 0
Traceback (most recent call last):
  File "/mnt/beegfs/home/wittkuhn/highspeed-fast/highspeed-fast-preproc/code/highspeed-fast-preproc.py", line 224, in <module>
    wf.run(plugin='SLURM', plugin_args=dict(template=job_template))
  File "/mnt/beegfs/home/wittkuhn/highspeed-fast/highspeed-fast-preproc/venv/lib/python3.11/site-packages/nipype/pipeline/engine/workflows.py", line 638, in run
    runner.run(execgraph, updatehash=updatehash, config=self.config)
  File "/mnt/beegfs/home/wittkuhn/highspeed-fast/highspeed-fast-preproc/venv/lib/python3.11/site-packages/nipype/pipeline/plugins/base.py", line 199, in run
    self._send_procs_to_workers(updatehash=updatehash, graph=graph)
  File "/mnt/beegfs/home/wittkuhn/highspeed-fast/highspeed-fast-preproc/venv/lib/python3.11/site-packages/nipype/pipeline/plugins/base.py", line 357, in _send_procs_to_workers
    tid = self._submit_job(
          ^^^^^^^^^^^^^^^^^
  File "/mnt/beegfs/home/wittkuhn/highspeed-fast/highspeed-fast-preproc/venv/lib/python3.11/site-packages/nipype/pipeline/plugins/base.py", line 573, in _submit_job
    return self._submit_batchtask(batchscriptfile, node)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/mnt/beegfs/home/wittkuhn/highspeed-fast/highspeed-fast-preproc/venv/lib/python3.11/site-packages/nipype/pipeline/plugins/slurm.py", line 146, in _submit_batchtask
    taskid = int(re.match(self._jobid_re, lines[-1]).groups()[0])
                                          ~~~~~^^^^
IndexError: list index out of range
requirements.txt
annexremote==1.6.5
appnope==0.1.4
astor==0.8.1
asttokens==2.4.1
bids-validator==1.14.6
boto3==1.34.144
botocore==1.34.144
certifi==2024.7.4
chardet==5.2.0
charset-normalizer==3.3.2
ci-info==0.3.0
click==8.1.7
comm==0.2.2
datalad==1.1.1
debugpy==1.8.2
decorator==5.1.1
distro==1.9.0
docopt==0.6.2
etelemetry==0.3.1
executing==2.0.1
fasteners==0.19
filelock==3.15.4
formulaic==0.5.2
future==1.0.0
humanize==4.10.0
idna==3.7
interface-meta==1.3.0
ipykernel==6.29.5
ipython==8.26.0
iso8601==2.1.0
isodate==0.6.1
jaraco.classes==3.4.0
jaraco.context==5.3.0
jaraco.functools==4.0.1
jedi==0.19.1
jmespath==1.0.1
jupyter_client==8.6.2
jupyter_core==5.7.2
keyring==25.2.1
keyrings.alt==5.0.1
looseversion==1.3.0
lxml==5.2.2
matplotlib-inline==0.1.7
more-itertools==10.3.0
msgpack==1.0.8
nest-asyncio==1.6.0
networkx==3.3
nibabel==5.2.1
niflow-nipype1-workflows==0.0.5
nipype==1.8.6
num2words==0.5.13
numpy==1.26.4
packaging==24.1
pandas==2.2.2
parso==0.8.4
patool==2.3.0
pexpect==4.9.0
platformdirs==4.2.2
prompt_toolkit==3.0.47
prov==2.0.1
psutil==6.0.0
ptyprocess==0.7.0
pure-eval==0.2.2
pybids==0.16.5
pydot==3.0.1
Pygments==2.18.0
pyparsing==3.1.2
python-dateutil==2.9.0.post0
python-gitlab==4.8.0
pytz==2024.1
pyzmq==26.0.3
rdflib==6.3.2
requests==2.32.3
requests-toolbelt==1.0.0
s3transfer==0.10.2
scipy==1.13.1
setuptools==70.0.0
simplejson==3.19.2
six==1.16.0
SQLAlchemy==2.0.31
stack-data==0.6.3
tornado==6.4.1
tqdm==4.66.4
traitlets==5.14.3
traits==6.3.2
typing_extensions==4.12.2
tzdata==2024.1
urllib3==2.2.2
wcwidth==0.2.13
wrapt==1.16.0

I have no idea where this issue comes from. Happy to provide any missing information. Thanks!