so it was known to Google but not to me
Right, but you can assume google knows the imei and other hardware details, so they can probably link you to your identity on other platforms.
There is also the baseband issue. It is currently assumed that manufacturers could have access to snoop your LTE/5g and WiFi traffic, because the software running most phone baseband units is closed and not audited.
So you are probably private, but if you really want a phone with no Big Brother, you should get one from Pine64 or Jolla.