That is not as simple as you may think, as there are some
types that are defined by standards organizations, some are
proprietary - defined by private corporations, some that are
purely arbitrary - such as those chosen by individual
developers, etc. See for example:
File Types
https://learn.microsoft.com/en-us/windows/win32/shell/fa-file-types
Perceived Types (The Windows Shell)
https://learn.microsoft.com/en-us/windows/win32/shell/fa-perceivedtypes
List of file formats
https://en.wikipedia.org/wiki/List_of_file_formats
While a file's extension may identify the file type
https://www.file-extensions.org/
note that different file types may use the same
extension. Also, a file's actual type may only
be identified by examining the file's contents
such as its header data.
It is a common trick used by malware distributors
to give a file a false extension to hide its real
purpose. For example trying to make an exe appear
as a pdf file thereby luring victims into running it.
So you are pretty much constrained to use the file
types that are registered with Windows.
- Wayne