He has repeatedly pledged not to work with the far-right anti-immigrant Alternative for Germany party.