for questions using "wish" to express a hypothetical (imaginary) situation or to express regret about a past action that did not happen.
To imagine situations in which hindsight might have been useful.
Typically:
I wish I hadn't said that
I wish I hadn't done that