でよかった

glad that

→ だ
phrase Common #2,754
glad that Used after a noun or な-adjective to express relief or happiness about a situation. For example, 無事でよかった means “I'm glad you’re safe.”
JA: あなたが元気でよかった。
EN: I'm glad you're well.

頑丈なでよかった

Good thing it was a sturdy car.

— GHOST IN THE SHELL (1995)

私はトムの友達でよかった

I'm glad I was Tom's friend.

トムと同じ学校でよかった

I'm glad I go to the same school as Tom.

彼が自分のコンピューターを操作するのにそうするだけでよかった

All he had to do to operate his computer was do that.

孤児でよかった

I'm glad I was an orphan.

— コーラス (2004)

お前が息子でよかった

I'm glad you're my son.

— ビッグ・シック ぼくたちの大いなる目ざめ (2017)

彼女が親友でよかった

I'm glad she's my best friend.

母親似でよかった

It's a good thing you take after your mother.

— タクシー運転手 約束は海を越えて (2017)