I would forget the OE inspection lamp sockets and fit a dedicated panel mount USB socket(s) hard wired to vehicles 12 volt supply before or after ignition switch as required. Something like link below.
Richard
2018 Roadster 3.7 1966 Land Rover S2a 88 2024 Royal Enfield Guerrilla 450 1945 Guzzi Airone