Since Windows 11 (or maybe earlier) Windows Notepad internally stores unsaved files so if the application (or Windows) crashes they will be still there later. For example, Notepad++ stores those temp files in:
C:\Users\USERNAME\AppData\Roaming\Notepad++\backup
I've searched here (and searching online about this pointed me here too) :
C:\Users\USERNAME\AppData\Roaming
C:\Users\USERNAME\AppData\Local
But it seems they are not there (I even grepped all .txt files in those directories recursively)