New cutom route does not appear in sitemap.xml

I made a custom route that points to a static file in my theme folder. It’s working perfect, except that the sitemap.xml didn’t pull this new route. How can I get my route to be displayed in the sitemap.xml and also be found by Google search.

Did you have a method to create/update a sitemap file and save it to /sitemap.xml periodicity??

No. Every time I make new posts or pages, the sitemap always updates automatically. In the one I’m having problems with, I created the route directly in the routes.yaml file.

The route: /gerador-de-cpf-automatico/: geradordecpf

  /gerador-de-cpf-automatico/: geradordecpf  

    permalink: /{slug}/
    template: index

  tag: /tag/{slug}/
  author: /author/{slug}/