This question already has an answer here:
Example: Fighter is engaged in melee combat with enemy. Warlock uses eldrich blast with "Repelling Blast" invocation. The enemy is pushed 10 ft. away. Is that creature no longer engaged in combat with the fighter? Would this free movement provoke an attack of opportunity?