Preflop the call was a bit loose OOP to a raise. I may call this preflop in late/last position and fold if I don't hit a nice draw (like you did).

Flop play depends on your read on the opp, I don't think the call was that horrible; even with tainted outs you would win this more often than lose if you hit...