Fetching details from the dictionary...
I wish I had ...; I should have ...; it would have been better if I had ...
傘を持っておけばよかった。
I should have brought an umbrella.
もっと勉強しておけばよかった。
I should have studied more.
早く言っておけばよかった。
I should have said it sooner.