I wish.....

My native friend said,'I wish I wouldn't say that', meaning ' I regret that I said that'.
I learned at school that this case people must say ' I wish I hadn't said that'.

I sometimes find that native speakers , especially American people speak in a different way from what we le