に乗り遅れてしまった

… ended up missing

→ に
phrase Rare #42,315
… ended up missing Used after the name of a bus, train, plane, or other vehicle. しまった adds a sense of regret or an unfortunate outcome.
JA: 寝坊して、電車に乗り遅れてしまった。
EN: I overslept and ended up missing the train.

きのうは最終バスに乗り遅れてしまった。

I missed the last bus yesterday.

私は昨日最終バスに乗り遅れてしまった。

I missed the last bus yesterday.

私たちは空港まで急いだが、飛行機に乗り遅れてしまった。

We hurried to the airport, but we missed our flight.

その事故のせいで、列車に乗り遅れてしまった。

Because of that accident, I missed the train.