First of all, I have 2 different sites.
1- The sitemap.xml page gives 404, but the sitemap_index.xml page seems open from the yoast seo section. The problem is that sitemap.xml page is not redirecting sitemap_index.xml. Google Search Console also sees the sitemap_index.xml page as HTML and gives an error. Other than that, before the update sitemap.xml was working fine by yoast. Can’t I return it as sitemap.xml again?
2- When the Permalinks Customizer plugin is disabled, my sitemap.xml page works. Even if I close the sitemap in Yoast, it still redirects to 404 pages. But Serach Console is reading the post sitemap.