SDL code in question: https://github.com/libsdl-org/SDL/blob/release-3.2.16/src/hidapi/windows/hid...
At first I thought cfgmgr32 may be doing the opposite of SetupAPI and just force-uppercase everything, but during the course of writing tests turns out casing is used in the registry is preserved.