I love that movie! As far as how realistic that ejection scene was don't know, that was probably just Hollywood adding drama to the movie. Also, heat-seeking missiles are not always stopped by flares, I am pretty sure that that was a heat-seeking missile. If it had been a radar-guided missile then the pilot would have released chaff instead of flares.
I hope that helped.