Replying to message makes chat lose focus

When replying to a message the characters i type on the keyboard are not inserted in the reply chat bubble, as if the chat window lost focus. I have to tap on the reply chat bubble for the typing to work. This bug doesn’t seem to affect other users i have chatted with.

Video demonstration of the bug can be found on the link below:
https://filebin.net/n34ht57ndoguimxg

Phone is OnePlus Nord, Android 11