Sitemap link 404 error

Smartcrawl sitemap link is returning 404 error

I’ve tried a solution shared in this thread:

# 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

I would like it to have this structure:

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