Is it bad?

Is it bad to keep sleeping with my ex? We were together for two and a half years and every thing is so confusing with him right now he acts like he doesn’t want to be with me but yet he does at the same time... I still really care about and love him