n'y ai-je pas pensé

why didn't I think of that?

→ ne
phrase Rare #42,381
why didn't I think of that? An emphatic expression of surprise or regret at not having thought of an idea earlier. The inverted word order is more formal or literary; in everyday speech, “Pourquoi je n’y ai pas pensé ?” is more common.
FR: N'y ai-je pas pensé plus tôt !
EN: Why didn't I think of that sooner!

Pourquoi n'y ai-je pas pensé?

Why didn’t I think of that?

— Ne Zha (2019)

Comment n'y ai-je pas pensé plus tôt!

Why didn't I think of that sooner!

— Le Bras de diamant (1969)

Pourquoi n'y ai-je pas pensé moi-même?

Why didn't I think of that myself?

Comment n'y ai-je pas pensé!

Why didn't I think of that!

— Tout sur ma mère (1999)

Pourquoi n'y ai-je pas pensé plus tôt?

Why didn’t I think of that sooner?

— Parasite (2019)