You can usually still pass safetynet with latest magisk, even on custom Roms. Go check the xda forums and you might find that.
It's unreliable by definition. You're better off keeping a device around with the stock OS on it, that you only use for SafetyNet-required stuff.
I remember the times of endless tweaking and patching after some Google Play services update a few years ago.