Hi zenocolo,
welcome to the Apple (user-to-user) Community!
Re: "Magic =keyboard =writes =with =every =spacbar =stroke =the =equal =sign"
Wondering if you have updated your iOS 17 version to the newest compatible version:
(NB: If you want to update, it is always wise to back up your data before updating)
ie: About iOS 17 Updates - Apple Support says 17.5.1 is the newest version:
You can check in Settings > General Software Updates)
______________________
If already using iOS 17.5.1:
You might want to try re-starting your iPhone (deletes temporary files, re-establishes connections, may update any recent setting changes, etc.,) Restarting often restores order when something is not working as it should. Restart your iPhone - Apple Support
All the best :-)