A family of Microsoft word processing software products for creating web, email, and print documents.
The AI bot's suggestion is worth trying, but note that the instructions are primarily for Windows.
In Word for Mac, press Option+F9 to show/hide all field codes. If the TOC field code includes \u, remove it and then update the table of contents.