If you don't wanna turn off USE_THOUSAND_SEPARATOR
.
https://docs.djangoproject.com/en/5.0/ref/settings/#use-thousand-separator
you can:
https://docs.djangoproject.com/en/5.0/ref/templates/builtins/#safe
https://docs.djangoproject.com/en/5.0/topics/i18n/formatting/#unlocalize