If you need to hide pages from search results, use the right tool for the job....
https://www.bestbookmarks.win/to-remove-pages-from-google-search-results-start-by-adding-a-noindex-meta
If you need to hide pages from search results, use the right tool for the job. Add a noindex tag to the page header to tell Google to drop it from their index. For urgent removals, use the Google Search Console Removals tool to hide content temporarily