I suspect it's npt just Samsung. Both google and microsoft (SwiftKey) does the same thing.
The worst part is that the most used national ID-function now stops you from using third party "approved" keyboard due to (misguided) security reasons. Both AnySoftKeyboard and AOSP keyboard is banned.
I wouldn't mind so much of Google/Microsoft/Samsung etc collected all data in house (including subcontractor companies who won't share this information with anyone else). If they kept it to themselves and said "just trust me, bro" to advertisers and kept my data to themselves I don't think I'd mind too much. But clearly that's not what happens here. They don't have nearly enough leverage against the advertisers.
The worst part is that the most used national ID-function now stops you from using third party "approved" keyboard due to (misguided) security reasons. Both AnySoftKeyboard and AOSP keyboard is banned.