This is a socket for a USB Breakout Board. Fits in a 15mm hole. The endcap has a diameter of 20mm, so everything is closed.
I bought these boards: https://www.az-delivery.de/en/products/mcu-micro-usb-schnittstelle
Update: Added the .3mf file to facilitate easier adjustments for other boards.
The author marked this model as their own original creation.