This worked on blender 2.93, but doesn't work anymore on Blender 3.3 (since ?)
{F13891718}
{F13891717}
Lighting information from diffuse or Principled BSDF, through shader to RGB appears black in renders when used in AOV output.
Blender file created in 2.93, and tested in 3.3.1 :
{F13891742}