This situation is potentially a little overblown.
A very specific subset of mods were problematic.
The real worry is that the malware can automatically spread itself into all the other .jar files on your device!
CurseForge have a disinfection guide here: https://support.curseforge.com/en/support/solutions/articles/9000228509-june-2023-infected-mods-detection-tool/
So I highly recommend you give that a check through if you’ve downloaded anything from CurseForge recently.
Yeah, it’s a dangerous virus, but not widespread. When I looked into it, it was just a dozen of mods that I’ve never even heard of. Seems like it was caught before any major damage was made.
Most of the mods that were infected were projects specifically designed to host the malware. From what I’ve read, only one legitimate user’s projects were affected, and like yourself, I’d never heard of the mods personally.
So, this is a dangerous bit of malware for sure, with the potential to spread quite badly, but so far I believe it’s had quite a limited reach due to not actually infecting anything super popular.