I know folks that have done it, while libcec is easy to build, the raspi HDMI implementation is not complete, functionality was spotty. So they gave up. The pi4 was close, not sure about the pi5.
They were using RaspiOS, if it doesn't work there, then its going to be difficult here. You might try a quick RaspiOS image and see what happens.