One fix is journalling filesystems, but neither ExFAT or FAT32 have it and ExFAT is loaded with MS licensing BS so nobody can improve it or use it in commercial products without a licensing dance and lawyers. APFS has COW+checkpoints (better) but nobody will use it due to Apple lawyers. ZFS is the gold standard (COW + transactions), again unavailable due to lawyers. BTRFS is also great but largely only exists due, once again, to the licensing prohibiting ZFS adoption in the Linux kernel. Everyone could just move to BTRFS, this would be a nice thing for Apple to support.
A second and arguably better fix is multi-stage with a 'sync now' trigger physically enforced early in the process and a lock. (Although we all remember the PITA of ejecting locked CDs!) It seems the SD Association specifies Power Off Notification (POF) in SD Physical Layer Specification 7.10 which means 'some' (=few) SD cards support signalling around this issue between the card and the OS. But it needs full stack support and does not include the physical triggering, only the logical elements, and would only cover SD type cards not USB mass storage, which has its own legacy solution (ported from SCSI) combining 0x35, 0x1B, 0x1E, 0x00 (SYNCHRONIZE CACHE, START STOP UNIT, PREVENT/ALLOW MEDIUM REMOVAL, TEST UNIT READY). But again, device support is patchy and this does not include physical triggering, so there's no standard source for the sequence to commence.
The second is exactly where a motivated combination software-hardware system vendor like former iterations of Apple could fix things and everyone else is ~powerless.