The Pixel 7 requires a heat gun to get to the battery because it's glued down, and step 31 in the process goes over what to do if your battery is stuck even after applying heat. It's impressive that you were able to replace the battery without many problems, but companies shouldn't be adding unnecessary complications like gluing down the battery in the first place.
https://www.ifixit.com/Guide/Google+Pixel+7+Battery+Replacement/154680