How can I exclude part of a heading from the outline?

Hello @cAtte and welcome!
You might like to read the following topics:

I think some of the answers there might help you