We use I Wish / If Only + Past Simple to express a wish ofr Present and Future.I wish you were here
We use I Wish / If Only + Past Perfect to express a Regret, the action is past.
If only we had invited him, now he's really angry.
We use I Wish / If Only + Would + Infinitive to express a Complaint.
I wish she wouldn't copy me, (because you're fed up with this).