Welcome to the forum. Others have already explained, why its a chopped pot. So I only want to add, that, what happened on the river, is called a counterfeit. Nominally your hand improved from AKJ76 (A high) to 22AKJ (a pair of 2s), but since parts of your opponents range improved more, it was actually a slightly bad card for you. Its also very common, that kickers get counterfeited, when two weak aces go against each other. And this is part of the reason, why a hand like A5s is considered more valuable than A7o.