が、すぐに

but soon

→ が
phrase Uncommon #19,706
but soon Combines が (“but”) with すぐに (“soon” or “immediately”) to describe something that happened shortly after a contrasting event.
JA: 疲れていたが、すぐに元気になった。
EN: I was tired, but I soon felt better.

彼女は気絶したが、すぐに意識を取り戻した

She fainted but regained consciousness shortly afterward.

トム起きていようとしたのだが、すぐに眠り込んでしまった

Tom tried to stay awake, but he quickly fell asleep.

彼は全力を尽くしたが、すぐにあんな速いランナーには勝てないことがわかった

He gave it his all, but soon realized he couldn’t beat such a fast runner.

その夫婦は喧嘩をしたが、すぐに仲直りをした

The couple had a fight, but they made up soon afterward.

ベン彼らに遅れているが、すぐに追いつくでしょう

Ben is behind them, but he’ll catch up soon.

私はジムに会ったことはなかったが、すぐにとわかった

I had never met Jim before, but I recognized him immediately.

その旅行者空腹のため気絶したが、すぐに意識戻った

The traveler fainted from hunger but quickly regained consciousness.

彼はギリシャ語学ぼうとしたが、すぐに飽きてやめてしまった

He tried to learn Greek, but quickly got bored and gave up.

その会社の社員事実を隠そうとしたが、すぐにそれは明らかになった

An employee of the company tried to hide the truth, but it soon came to light.

彼はパリに着いたが、すぐにロンドン発った

He arrived in Paris, but left for London soon after.

私はレース最後に出発したが、すぐに他の人たちに追いついた

I started the race last, but I quickly caught up with the others.