when turning on "Find My" I found that the Apple ID is to the previous owner and it requested me to provide the password for that Apple ID. My Apple ID is defined in setting and iCloud correctly and working fine with my Mac and my iPhone.
how to remove this Apple ID linked with Find my in my MacBook Pro
MacBook Pro 13″, macOS 13.0