Yes, poorly played.

The flop is bad for you. Although if you do think you are still ahead (I think you are), bet the flop out 2/3 POT SIZED, do not push here. This way, if reraised you can fold easily enough figuring you are beat, so you will not lose your stack.

You were lucky the guy was retarded here