Blender shader to UE5

It’s a really simple shader, but I don’t think there is an easy way to convert it…
This would have to be done in a post-process material. You can use custom depth to filter out what you want.

If you can get the pure lighting (what blender treats as the diffuse) then you can use the technique in the below video to easily ramp. Though getting that pure lighting can be tricky. Here’s a thread going over it: