I do feel like Moksh knows about Shera being Malhar but another explanation for him defending Shera could be the fact that Shera has been saving him and Kalyani and showing Avni her place. And as we all know, Moksh never really got the chance to bond that well with Malhar as Mukku so I don't think he would recognise him unless Shera gave a really obvious hint.