Some stomachs don't tolerate regular pasta too well after surgery, but some people tolerate it just fine. The issue with regular pasta is the simple carbs and the spike in insulin that it can cause, which can trigger fat storage and also can lead to hunger. Regular pasta is metabolised pretty quickly, so it generally doesn't move down undigested enough into the small intestine to send those good satiety signals to your brain. So, we tend to get hungry more quickly. It's a bit of a slippery slope, but if you can tolerate it and eat it in moderation without it being a triggering food, then it shouldn't be a problem.
If you want something that tastes very, very close to regular pasta, and way better than whole wheat pasta, try Chickpea pasta or Green Lentil pasta, both have much more protein, higher fiber and significantly fewer net carbs than regular pasta with out a sacrifice in taste, in my opinion. Banza chickpea pasta is a good brand.
If you want to take it further than that, black bean pasta or edamame pasta have even more protein and fewer carbs and they are very, very filling. They have a different taste from pasta, but with a good marinara or something and a little parmesan, it's pretty good.