? is a wildcard, and file names can't contain that character. For more info on reserved characters, pls check out:
Naming Files, Paths, and Namespaces - Win32 apps | Microsoft Learn
https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-file