Panel 1.4 runtime error but not in notebook

It looks I have stumbled upon the same error, as described in Problems running notebook from reference/panes/Matplotlib.html in Panel - strange SyntaxError

Though I have SyntaxError on fragment of JavaScript script, not on fragment of CSS stylesheet.

Panel 1.5.2, Bokeh 3.6.0, JupyterLab 4.2.5