I believe Liverpool are thinking about how to deal with the situation, because he is 32 years old and next year he will be 33 years old, so they need to watch carefully this season how many games he can play without getting injured and how many goals and assists he can make because that way the Liverpool team that takes care of his fitness could determine that giving him a contract for another 2 years would be beneficial for Liverpool. So far he has been a great scorer of goals and makes a lot of assists. In other words, he is a very important player at the moment.
https://www.premierleague.com/He currently has the same number of goals as Luiz Dias, Bryan from Brentford and Madueke from Chelsea, all with 3 goals and are in second place in the list of top scorers in the Premier League. As long as he continues to score a lot of goals and make a lot of assists, then I believe Liverpool will extend his contract.
It seems to me that Liverpool is thinking about how to replace Salah with a more promising player, because even if he stays in Liverpool in a couple of years at most, this issue will have to be resolved anyway. In his last interview, Salah said that this is his last season in Liverpool (under contract) and he has not received any offers from the club. As I understand it, Salah would be happy if there were such offers and he could choose between Saudi Arabia and Liverpool.