basic #pricacy tip ... If you are interested in, or relying on, end-to-end encryption then do yourself a favor and ensure your keyboard app (Gboard anyone?) does not have network access.
You can sleep better knowing your Keyboard app does not transfer stuff somewhere, let alone feed some AI machinery, right?
Keyboard apps also often have access to clipboard buffers, so copy+paste is also leaking if your keyboard app happily talks with servers.