The situation of Joshua Kimmich is not clear yet and we can't predict to his situation in the next season. During the time when Tuchel was working in Bayern Munich, Joshua Kimmich was about to leave the team because of the bad relationship he had with Tuchel now Tuchel left and Joshua Kimmich is still in the team.
Now Joshua Kimmich hopes to see Kompany use his talents in Bayern Munich. Also, Bayern Munich doesn't want to lose this player because some teams like Barcelona, Liverpool, and Chelsea are trying to hire this player.

It would be a shame if Kimmich left because after all he has been an important figure for Bayern Munich for many years. If he leaves, it will certainly make Bayern Munich a little fragile for next season. However, Bayern Munich doesn't seem to need to be confused considering that they have also got Palhinha who plays as a defensive midfielder this summer.
Maybe the problem is that we often see Kimmich occupying the right-back position and I don't think there is a replacement at the moment. While watching Kimmich's development, I think Bayern Munich must be on guard to find a suitable right-back if Kimmich leaves. The pressure from several teams trying to bid for him will make Kimmich even more willing to move.