Emacs/corfu troubles

I am getting this error while using corfu for completion in sclang:

Error in post-command-hook (corfu--post-command): (scan-error "Containing expression ends prematurely" 1939 1939)

Is anybody else seeing this? Or have any idea what it could be related to?

It basically breaks all sc-related completion…

EDIT: I am getting the same error when trying to use company as well, so it seems it’s not related to corfu specifically.