Bit more info here
https://spfl.co.uk/news/post-split-qa-season-202425
How are the fixtures for rounds 34-38 determined?
Clubs play 16 or 17 home games in the 33 fixture rounds before the split. We then try to ensure that all clubs finish up having played 19 games at home and 19 away. However, this is not always possible to achieve. For the first time since 2017/18 one club (St Mirren) will play 20 home games and one club (Motherwell) will play 18 at home. Motherwell were the last club to gain a home fixture, with Hearts the team that lost a home game in 2017/18.