I noticed that after updating 'needrestart' to 3.6-4+deb12u2, the 'libmodule-scandeps-perl' package now shows up in the autoremove list. (In a VM that still has the 3.6-4+deb12u1 'needrestart', trying to remove 'libmodule-scandeps-perl' will also remove 'needrestart'.)
Can someone confirm that this is expected behavior? thanks, mike