I have checked both, and I have done everything suggested. I spend lots of time in that Magic support thread over the past year or so, and I am familiar with the procedures and suggestions discussed there. I am able to hide Magisk and pass SafetyNet with some other ROMs. LOS 18.1 seems to be problematic for me in this regard, however.SafetyNet & guacamole LineageOS 18.1
Try this made for ARM64 devices like yours: MAGISK MODULE ❯ Universal SafetyNet Fix.
Check the excellent Magisk and MagiskHide Installation and Troubleshooting guide and also the XDA Magisk support thread for help.
Universal SafetyNet Fix doesn't work for me, either. In any case, I thought that particular module was obsolete.
PS: I now think this problem might be due to Google's latest software downloads. I have another device which is running Magisk 22.1 and for which SafetyNet has been passing with no problem for several weeks.
However, I just noticed that SafetyNet stopped passing on that other device, also. I had not changed the ROM, the OS, nor anything related to Magisk for several weeks on that device. However, I think that Google might have pushed some software upgrades which are now interfering with Magisk's ability to hide from SafetyNet.
Thanks a lot, Google.