They're in one of the calibre configuration files:
gui.py.json, look for "save_to_disk_template_history"
You can access the calibre configuration folder via a button in Preferences->Miscellaneous
Close calibre before you start editing any files in that folder
BR