Ensure a proper mechanical connection:
Try adding an appropriate connector footprint or mechanical mounting points rather than a single signal wire so that the module is recognized as an integral part of the assembly.
Review component properties:
Verify that the module’s properties indicate it should be included in the STEP export. Sometimes there’s a flag or setting for including external 3D assets.
Check export settings:
Look into the STEP export options to see if there’s a setting to include disconnected elements. Flux may automatically exclude items that aren’t fully integrated into the board design electrically and mechanically.