Dollar sign in text box crashes Psychopy

Hi all,

I believe an exact problem is as below, right?

a probably temporary solution

My OS: Ubuntu 18.04
Installed Psychopy through pip install psychopy

Conda Environment:
python 3.8.13 ha86cf86_0_cpython conda-forge
psychopy 2022.2.4 pypi_0 pypi
wxpython 4.1.1 pypi_0 pypi

I just installed a 2022.2.4 version of Psychopy today (on 22 August, 2022) and I still encountered this error in my environment as well (2021 version works fine in another conda environment). See below error messages.

Error messages on the Psychopy3 output console

Traceback (most recent call last):
  File ".../anaconda3/envs/psychopy2022/lib/python3.8/site-packages/psychopy/app/builder/dialogs/paramCtrls.py", line 31, in validate
    validate(self, self.valType)
  File ".../anaconda3/envs/psychopy2022/lib/python3.8/site-packages/psychopy/app/builder/dialogs/paramCtrls.py", line 557, in validate
    if re.findall(r"(?<!\\)\"", val):
  File ".../anaconda3/envs/psychopy2022/lib/python3.8/re.py", line 241, in findall
    return _compile(pattern, flags).findall(string)
  File ".../anaconda3/envs/psychopy2022/lib/python3.8/re.py", line 291, in _compile
    if isinstance(flags, RegexFlag):
RecursionError: maximum recursion depth exceeded while calling a Python object

**Error message on Terminal: **

(psychopy:23502): Gtk-WARNING **: 16:59:16.520: Invalid text buffer iterator: either the iterator is uninitialized, or the characters/pixbufs/widgets in the buffer have been modified since the iterator was created.
You must use marks, character numbers, or line numbers to preserve a position across buffer modifications.
You can apply tags and insert marks without invalidating your iterators,
but any mutation that affects 'indexable' buffer contents (contents that can be referred to by character offset)
will invalidate all outstanding iterators
Segmentation fault (core dumped)

I typed a “variable name” without a $ sign without “” double quotations (e.g. sbj_num, which is defined earlier) in coder and it works, but it would be more convenient if I can use a $ sign in builder.

Best,
HT