A family of Microsoft word processing software products for creating web, email, and print documents.
From your response at https://learn.microsoft.com/en-us/answers/questions/5924998/toc-repeated-problem-after-many-suggestion-cannot, it appears that perhaps when you generate the TOC you are seeing the TOC field code. Try pressing Alt+F9 (Fn+Alt+F9 on some machines) to toggle the display from field codes to field results.