았었/었었/였었
past state or event viewed from the present
Explanation
Use 았었/었었 when you look back on an earlier situation from where you are now. This is especially common when something has changed since then.
You might say this while showing a friend your old workplace. The ordinary past 일했어요 also tells them you worked here. 일했었어요 draws attention to that earlier time.
It also works for a single event. You might use it when you recognize someone you’ve met before: