For what it’s worth, I remember having this issue with Samsung OneUI keyboard when it was in French. In French there is this rule there that you should put a space before “?” and “!”, so perhaps their developers understood “all punctuation” or something.
I wonder what is his case.
i'll try that or resetting my keyboard. thanks for the tip