se me había olvidado

I had forgotten

→ se
phrase Rare #31,804
I had forgotten Spanish uses the pattern «se me olvida» for something slipping your mind; the forgotten thing is the grammatical subject, so the verb agrees with it when needed.
SP: Se me había olvidado que hoy venías.
EN: I had forgotten you were coming today.

Casi se me había olvidado.

I had almost forgotten.

— La canción del mar (2014)

¿Creías que se me había olvidado?

Did you think I’d forgotten?

— Atrápame si puedes (2002)

Se me había olvidado lo bonito que era este sitio.

I had forgotten how beautiful this place was.

Simplemente se me había olvidado sacarlo de donde lo había guardado.

I’d simply forgotten to take it out of where I’d put it.

Ah, carajo, ya sabía que algo se me había olvidado.

Oh, damn, I knew I’d forgotten something.

— Amores perros (2000)

No abras la puerta, pero se me había olvidado que hay una segunda carta.

Don't open the door, but I had forgotten that there is a second letter.

— Jojo Rabbit (2019)

Se me había olvidado.

I had forgotten.

— El profesional (Léon) (1994)