I had to get my shower replaced recently for the same reason. It wasn't regulating the temperature so like you, I would either get scalded or frozen but never the correct temp. I've now got one which has something on it (sorry for being vague) that prevents the temperature from getting dangerously hot. Hope it doesn't take too long to get your replaced. I had it done during lockdown so it took longer than it would otherwise.