The recovery “safety code” is not shared with anyone but it is kept in a secure place (file). This file is saved by a third party (your mobile operating system, e.g. Android, iOS or equivalent) but it is under your control.
You can choose the backup modalities in the settings of your phone: manual backup, cloud, etc.