This is - I think - a DIN 562 square nut. My Mk3s+ kit came with what seemed like several thousand of these. I couldn't find any existing models here, so I made one myself, polygon by painstaking polygon.
Behold! The nut.
Here, you will find one (1) stl file containing 1 (one) square nut. It is 5.5 mm on each side, and 1.6 mm thick, and has a M3x0.5 hole right smack-dab in the middle.
SLICER SETTINGS
Only print one of these at a time.
For best results, rotate the stl model 385º about the z axis before slicing.
To prevent warping, use a brim of at least 15 cm.
Position the nut at least 21 cm above the bed, and allow the slicer to fill the space underneath with support material. Ideally, use a multi-material unit, and use several different types of support material simultaneously, in case one of them is better than the others.
Pause the print after each layer completes, and carefully remove your print from the bed. Coat the print, heated bed, and yourself with a glue stick, hair spray, and superglue. Then, carefully replace the print on the bed and resume the print.
SPEED TIP: remove the nozzle from your printer and set the layer size to 1.75 or 2.85 mm, depending on your filament color.
DISCLAIMERS
I have no idea whether this is a true, standards-compliant, ISO-certified DIN-562 square nut.
Unless you're desperate (like me) or stupid (also like me), you should probably support a local business and go buy some real STEEL nuts.
Don't be like me. Don't make your hardware out of PLA or PETG. or whatever “artisanal small-batch wood-filled makerfilament” you're currently wasting all your disposable income on.