If you’re on Windows 11, and Cubase is hanging at “Initialising MIDI …”, try uninstalling any vendor-specific MIDI drivers (not applications) for USB MIDI interfaces and controllers. They should work natively with the new Windows MIDI Services. If this is the issue, reverting to earlier Cubase versions on Windows 11 will not fix it.
Link to the information about Windows 11 MIDI Services: