An airline crew’s failure to follow tower controllers’ instructions is being blamed for what federal aviation officials rate the scariest runway incident all last year at Kennedy Airport.

On June 20, the pilots of a Cairo-bound EgyptAir Boeing 777 mistakenly taxied just 37 feet shy of Runway 22R, where it would have been in the path of a Lufthansa jet speeding toward takeoff in the June 20 incident, the Federal Aviation Administration said in a statement to The Post.

The investigation’s results were forwarded to the Egyptian authorities responsible for regulating EgyptAir operations, the FAA said in a statement to The Post.

It was unclear what actions the Egyptians took in the incident, and EgyptAir officials in New York did not respond to a request for comment.

The Lufthansa Airbus stopped just 1,500 feet from the EgyptAir plane — a distance the jet could have covered in about 6 seconds at its normal takeoff speed of 180 mph.

The Lufthansa crew brought the Airbus A340 to a screeching halt, partly by jamming on its brakes so hard that they overheated.

“No! Whoa-whoa-whoa-whoa!” someone in the tower shouted over the radio as the EgyptAir plane crossed a hold-short line, where it should have stopped before heading to the runway.