Good luck with your surgery.
You're making a life changing decision. My affair with food is not the same as it used to be. It was hard the first month. But I've stopped thinking of food the way I used to.
I used to look forward to eating. Now, eating is to sustain my health and nutrition. Not something I do when I'm bored or something smells really good. You will do fine.
I've "tried" things I wasn't supposed to try - and I've paid for it in pain & discomfort. You will too. I said I wouldn't - the surgery was too important and lack of self control is what got me to my highest weight.... But, you will try to test the waters.... We all have.
You'll learn quickly - just as quickly you eat the wrong things.