If the same contract will remain in place rent increases are capped at 3%. However, if the old tenancy agreement is being ended and you’re starting a new contract with the other person, I think the LL can ask whatever they want. You can accept it or walk away.
I’d recommend you get in touch with Shelter Scotland to get definitive advice.