The behavior you’re describing is also exactly what happens to me on the iOS17 betas on both iPhone and iPad.
I’ve figured out that if I open up the task manager briefly and then close it (essentially drag up from the bottom of the screen for a very small bit and then let go) the text input box comes back to the foreground and I can respond again. I have no idea how or if this works on macOS.