Its not that he doesn’t recognise it, he thought Straw Hat was dead so he doesnt know what’s going on above. He then recognizes Luffy here:
Then they fight and then he asks Luffy who he is.
[automerge]1722383273[/automerge]
The first panel came after the second panel.
The Straw Hats being surprised is because they thought he was dead. Literally all of them recognise him.