Auto correct is a good tool to have but it does obviously need to be accurate.
May I assume your using the Samsung Keyboard ?
Try clearing the keyboard cache via Settings, Apps, Samsung Keyboard, Storage, Clear Cache. You can clear Data but this could delete your saved words and any text shortcuts you've added.
You could try resetting it via Settings, General Management, Samsung Keyboard Settings, Reset to Default Settings.
This will delete any saved worlds and text shortcuts.
A similar thread … eu.community.samsung.com/t5/galaxy-s10-series/s9-s10-new-update-autocorrect-not-working.
If all else fails perhaps look to a 3rd party keyboard available on the Playstore.
There are quite a few to try out.
Daily Driver > Samsung Galaxy s²² Ultra 256Gb in Phantom Black.
The advice I offer is my own and does not represent Samsung’s position.
I'm here to help. " This is the way. "