Also seems to work on MacOS LibreOffice 24.8.1.2. Thanks for the quick fix!
It still does not work for me. I'm using: TexMaths 0.51.1 Libreoffice 7.5.3.2 MacTex-2023 MacOS 13.4
Sorry, only one attachemnt was added. Here is the MacOS version.
Chemfig on MacOS