I did my PhD in a biology related-related field, but I saw a few people have a similar situation to you where their advisor no longer wanted to be their advisor, or suggested they leave, or straight up told them they would never finish their PhD in their lab. None of them ended up finishing.
So iI know this seems drastic, but if your advisor no longer wants to work with you that's the end of working with them. It isn't going to be the effort and the end result will either be you burnt out or not finishing.
The best thing you can do is find a new advisor. Finding a good advisor is not just about finding one who does the same work as you, in fact, I'd say that is almost secondary, it is about finding one that will help you become the best scientist you can be and one that you get along with.
Go to your department head/student union head/any university person thatwho is there to help you and get adviseadvice on what is possible in your university/region. But please, don't try working with people who don't want to work with you.