noindex meta tag in body
Meta tags in the body of the HTML will not be ignored by Google. Therefor a noindex-meta-tag in the body does prevent indexing of the page.
Google Search Console URL Inspection will declare this Excluded by ‘noindex’ tag which seems a little bit strange but still works.