Can’t remember if this is new in iOS 17 or not, but I appreciate the reminder that location data is in photos I share by default (tap “options” to remove it), but it should really be off by default IMO.
You can go into Settings > Privacy > Photos and go into each app and turn off location by default, but I don’t see a universal way to toggle it off for all apps.
Will happily update this if someone knows how to turn it off for all current and future apps by default!

