20mm M4 standoff / spacer / distance / sleeve with internal threads on both ends (nut DIN 562). Standoff is flattened for 10mm spanner key.
There are two versions: tight and loose fit, but on my printers (MK3S+ and MINI; 0,4mm nozzle; PLA and PETG; 0,15 and 0,2mm layer height) in both versions, the nut does not fall out of the hole.
In the last picture there is example of use (my another design).
I am attaching step file, so you can modify lenght, but if you want specified distance I could prepare it for you.
The author marked this model as their own original creation.