ROTATE: Regret-driven Open-ended Training for Ad Hoc Teamwork