Brushless motor couling
An alternative to sawing off the threaded part of the shaft at the coupling end.
Buy the spiral coupling with a 3mm I/D at the output end.
Drill it out with a 4mm tap drill, = 3.4mm and tap a 4mm thread 0.75 (normal) or 0.76 pitch to match your shaft end. (🙄)
Bingo. Bob's yer Uncle and Fanny's yer Aunt. Job done👍😊
Cheers, Doug 😎
https://www.boltdepot.com/fastener-information/metric-tap-drill-size.aspx