Hi @Matthias68,
Thanks for reaching out to us. We are very pleased to assist you.
Unfortunately, after we enable the custom scripts in SharePoint SE (OnPrem), the Script Editor Web Part and Content Editor Web Part are not available in SharePoint Modern Pages.
These web parts were part of the classic SharePoint experience and were primarily used in classic SharePoint pages. In the modern SharePoint pages, Microsoft has moved towards a more simplified and secure way of structuring content, and custom scripts aren't allowed directly on these pages.
Currently, the only way to add custom scripts to Morden experience site collection is to use SPFx.
If you are new to SPFx, then you can start with this article: SharePoint Framework development with SharePoint Server 2019 and Subscription Edition.
We also recommend using SPFx, as the “Allow custom scripts” setting will be removed in the near future. Once this is removed, we will not be able to use custom scripts in Classic or Modern Experience and SPFx will replace them as another option for customizing SharePoint.
If you have any questions, please do not hesitate to contact me.
Moreover, if the issue can be fixed successfully, please click "Accept Answer" so that we can better archive the case and the other community members who are suffering the same issue can benefit from it.
Your kind contribution is much appreciated.