On my Fedora 40 I also get autoswitching using bluetooth headphones. However I think you will fine that because your headphones are plugged in there is no way for the headphone module to inform the rest of the system that it now has headphones plugged in as it is an already plugged in USB device. I think you will need to manually switch them.