I think he gave the red for the second movenment which Nani made with his leg after the initial contact. Obviously without that it wasn't a red and maybe not even a yellow.
I thought Ferdinand was bang out of order at the end, when he sarcastically clapped the referee. It's bullying, and he's setting a terrible example to young people who look up to him.