Although I primarily use aftereffects/photoshop for any color keying work, I had a thought “Can I do this in blender?”
And the answer is yes! yes you can!
and it is very easy, albeit not as powerful as the aftereffects keying algorithm it still works surprisingly well. You can also combine this technique with a painted alpha mask to have even more control over the results.