More complicated than that. Pavard wants to leave, but mainly because Bayern have shown that they don't really see him as a key player. Boateng and Alaba left in the same summer of 2021, opening up the possibility for Pavard to step into the team and become a mainstay at his favored position of CB, and Bayern responded by buying three other expensive CBs in the next few windows, two of them right footed. And in terms of RB they brought in Mazraoui last summer, loaned Cancelo over the winter, and tried to buy Walker this summer.
Pavard is a very useful and versatile player to have in the squad - the kind of guy managers really like and pick frequently because he can play multiple positions at a decent level and will follow a tactical plan but also the kind of player a big club is going to try to improve on in terms of the starting lineup.