magento2 – Inconsistent product URL

I am facing a problem in Magento 2.2.0 and Unero Theme 1.3.2 where there are products that have a URL like:

and the others are:

I am checking the condition of the SEO configuration in the catalog configuration, but I think it is already correct in the store view level configuration.

SEO Store View Settings

And this is the SEO configuration in the catalog -> product itself
SEO product configurations

I am currently in the initial state of development and learning of Magento programming. Do you need code modification in the kernel / topic? Or is there something wrong with the configuration?

The expected result is the second where there is .html in the product URL