That's because the module isn't even compatible with Unreal 6 yet. U6 has barely been out for a few weeks and you can't really expect all modules to be updated immediately (especially during holiday season). Plus I have quite a bit of modules and there are a lot of necessary changes. I've been working on them but it will take some more time.
Listrestrict is also not listed under the v6 tab on the modules information page (as well as the rest of my modules) and Syzop mentioned in all the relevant docs/announcements that modules require an update to be compatible, so you could've already known it isn't yet supported for the latest Unreal (before even trying to upgrade). So simply either don't load the module for the time being, or wait with upgrading to Unreal 6 until I've updated everything.