it’s not your memories which define you
it is your behaviour what defines you and if you lose the memories, at will affect the behaviour, so i am inclined to say yes, you are different person then.
it is similar to when you lose a loved one to a cult, be it maga or some religious cult. they are no longer the same person. you want to get back the person they were before, but right now, even if you kidnap them and lock them in your basement, they are not the same person.