Index/PDF Page Numbers Don't Match

I have a large ODM document.
When I export the document to PDF the references work and the PDF index
(table of contents) works correctly (page numbers correspond to
document pages).
However the table of contents included in the document - generated
using the Table of Contents feature - is all off my a few pages.

see

LibreOffice 7.1.5.2

Crossposting:

https://listarchives.libreoffice.org/global/users/2021/msg00631.html