Hi Sorin! The first way is close but take out the word "ever." It should read, "why didn't I know that" or, "why didn't I know that before?"
You need to say confusing I'm afraid. Perhaps remember it this way, "it is confusing and therefore I am confused."