Document and spreadsheet templates only work with .doc or .xls extensions

I have nextcloud updated to version 27.0.2, using ubuntu 22.04, I have also configured the templates folder to generate new templates when opening a new document or spreadsheet.

However, when creating a new document, the template options only appear if I save my documents or spreadsheets with a .doc or .xls extension.

I would like template files to be created with standard collabora extensions as .odt or .docx documents if the OOXML option is checked in the settings.

It is possible?

Or is it a bug in my installation?