Bro, I took the test to be sure. I installed the rom with the formatting of the device and after that, I managed to root it with the official magisk. I believe it's because I didn't uninstall Magisk before updating the rom. So it caused some problem releasing root in the updated version. Thanks...