Set the slicer to pause the print when the layer right above the nut cavity is active. (See 3rd picture.) Place a standard M3 hex nut into the print and resume.
The author remixed this model.
Use a metal print-in nut instead of printed threads for a strong mechanical part.