A logic issue was addressed with improved restrictions. This issue is fixed in iOS 15.7.2 and iPadOS 15.7.2, macOS Ventura 13.1, iOS 16.2 and iPadOS 16.2. An app may be able to read sensitive location information
https://support.apple.com/en-us/HT213532
https://support.apple.com/en-us/HT213531
https://support.apple.com/kb/HT213536