After installation of new LineageOS release Magisk and root access are removed. This page describes few options reinstall Magisk.
On Magisk's webpage https://topjohnwu.github.io/Magisk/install.html two different options are presented:
This method worked for me (April 19th, 2025), but is not recommended on Magiks webpage: “Installing using custom recoveries is only possible if your device has boot ramdisk. Installing Magisk through custom recoveries on modern devices is no longer recommended. If you face any issues, please use the Patch Image method.”
adb -d reboot sideload adb -d sideload /path/to/zip