Scotland and Everton right-back Nathan Patterson will require surgery on a hamstring issue and is out for the rest of the season ahead of Euro 2024.