Apparently, this bug is (hopefully) fixed in LibreOffice 7.5.0. See https://bugs.documentfoundation.org/show_bug.cgi?id=108497#c39. It seems that there is still some time until this version will get official, but at least it is on its way.