German Chancellor Olaf Scholz warned that the next president of the European Commission shouldn't seek support from far-right parties.