Your computer's USB ports are soldered. This is the motherboard or a secondary PCB (PCB). Regular usage may loosen and detach ports.
Small Wi-Fi, Bluetooth, and even contemporary USB flash memory are unlikely to strain the port's physical connection.
USB cables' size and weight function as a lever, loosening USB ports.
Replacing motherboard USB ports isn't straightforward. A desktop computer's new board may be easy to install.
How to repair laptop USB port? Soldering iron needed. Here's how to re-solder your laptop's USB connector:
You could have an expert fix it, but there will be fees. Solder if you want to do it yourself. If unsure, check software fixes.