Creating a Table of Contents and Index

I write non fiction and was looking for suggestions on how best to create a Table of Contents and an Index for my writings.

I am also interested to designate some words that are to be gathered in a table of index at the end of the document.
Word is doing this.

Word can do it but I think this is something that will have to be done when the text is ready and is leaving Scrivener for advanced post-processing, possibly using Word.

This was discussed two years ago and I think most of it is still true:
https://forum.literatureandlatte.com/t/create-an-index-names-places-concepts/36426/1

How to make a ToC is explained in the manual.