How to stop pages marked noindex appearing in Netlify sitemap plugin

We’re using the Netlify sitemap plugin. I understand you can exclude pages based on the path but we have a number of pages marked as noindex throughout our site that we don’t want to appear in the sitemap. Is there anyway to exclude noindex pages - these can be marked at any time by our content team in the CMS so we can’t manage these by updating paths.

Is there anyway this can be done or do I need to look for an alternative approach to building our sitemap?

I’d suggest taking some alternative approach, the plugin isn’t meant to handle your use case.