Sitemap link 404 error

Smartcrawl sitemap link is returning 404 error
https://mysite.com/sitemap.xml

I’ve tried a solution shared in this thread:
https://premium.wpmudev.org/forums/topic/smartcrawl-pro-sitemap-xml-is-give-a-404/

# wpmudev smartcrawl 2020
location ~ ([^/]*)sitemap(.*).x(m|s)l$ {
rewrite ^/sitemap.xml$ /index.php?wds_sitemap=1&wds_sitemap_type=index last;
rewrite ^/([^/]+?)-sitemap([0-9]+)?.xml$ /index.php?wds_sitemap=1&wds_sitemap_type=$1&wds_sitemap_page=$2 last;
}

It is working, but the working sitemap link looks like this
https://mysite.com/index.php?wds_sitemap=1&wds_sitemap_type=index

I would like it to have this structure:
https://mysite.com/sitemap.xml

I have the same issue on all sites on the same hosting.