Hello,
Thank you for contacting us and sorry for any inconvenience that might have been caused due to that.
Please note that our plugin doesn’t remove redirected URLs from the sitemap automatically unless you delete those pages completely from your website or set them to Noindex.
You can delete the pages or set them to Noindex and after that, follow the steps below to clear your sitemap cache:
1. Flush the Sitemap cache by following this video screencast:
https://i.rankmath.com/pipRDp
2. Exclude the Sitemap files of the Rank Math plugin in your caching plugin. The cache could be via a plugin or from the server. For plugins or Cloudflare, please follow this article:
https://rankmath.com/kb/exclude-sitemaps-from-caching/
Let us know how it goes. Looking forward to helping you.