Export Selection as apx file doesn't work in Maya 2022

Exporting a cloth mesh as an apx file using the Export Selection menu of the PhysX plugin in Maya 2022, results in an invalid apx file (does not contain any cloth mesh) or it's missing. This is a known issue with Maya 2022, the workaround is to use Export All.