Universal adjustable box, for example for drills or taps.
I did my test print in spiral mode for better strength and detail with a layer cap of 0.1mm.
You can try classic printing of both pieces at once.
If you need a different size, write in the comments.