OK, got it. You have got to flash magisk canary update via twrp/ofox, than you won't get issues.Exact same thing happened to me, and i did the same format data to fix it, I thought it was my fault somehow.
I will stay unrooted for now in order to use fingerprint and since Safetynet check was failing for me anyway ever since the server side change from Google