I’m glad that..
Expresses relief or gratitude that something happened or was done.
This pattern is the past tense of て+いい, meaning 'it was good that...' or 'I'm glad that...'. It shows that the speaker feels positive about a past event or action. It often uses the negative て-form to express relief that something didn't happen, e.g., 来なくてよかった (I'm glad [he] didn't come).
You can use it with your own actions (I'm glad I did) or others' actions (I'm glad you did). It's common in everyday conversation and casual writing. For formal speech, you might hear てよかったです, but the plain form is fine in casual settings.