Use the past perfect when something ends in the past, not merely happened in the past. This guy should have used the past perfect! Last panel.
“I wish I had known,” not “I wish I knew,” because the knowing could end in the past, and the simple past implies the knowing is still happening. Too late!