One is not an apostate if you have been praying on and off or few times
every now and then! However, if you have not prayed at all, then this
might be apostasy. However, your coming back to practicing Deen is a
good news Alhamdulillah. Repent from your acts sincerely in addition to
performing your daily duties. Making ghusul will not harm you!