Hi Vanaj,
Sorry, I was offline.
Rest assured inserting a USB drive and having it open in File Explorer, is not counted as an AutoPlay that can affect your system, it is only if an AutoPlay.inf file is executed that can cause malware to spread to your PC, and Microsoft have deliberately blocked the execution of that type of AutoPlay in Windows 10 and 11, because that is how malware is spread.
Rest assured, your PC cannot be infected by just opening the drive in File Explorer, you do not need to worry about that, you are safe.