I use Gboard and it doesn't even show up in the battery list. Before I switched to Gboard, the Samsung keyboard was definitely not behaving like this - probably a software bug or incorrect battery usage reporting. I bet if you switch keyboards or even switch to something else and switch back, it will fix it.
It also could just not be reporting properly yet. Given that your screen has been on for nearly 2 hours, and you have nearly an hour of usage between Chrome and YouTube combined, plus whatever else isn't in that screen shot, you haven't lost an unreasonable amount of battery life (looks like you used around 25%). My guess is that it is still optimizing everything and thus isn't giving you accurate battery usage statistics yet.