1 We use wish/if only + past simple tense to talk about present regrets, or things we would like to change.
2 We use wish/if only + would to talk about how we want someone else’s behaviour to change.
3 We use wish/if only + past perfect tense to talk about past regrets.