I had to smile at the image of your bird avoiding the cage! They are plenty smart, and a smart creature recognizes be locked up is no fun.
But you can train them to go back with practice and patience. I trained my 3 flighted budgies to return, as well as Phoebe my quaker who was fearful of hands when I first got her. To this day Phoebe returns to cage when asked but takes tge longest most complicated path she can, sooo funny.
It takes some conditioning at first, by not always locking them up when they return. By locking them up for just a couple of minutes and letting them back out. By standing at cage with door open and have them step to you and back to inside cage perch and back to you. Do no more than 5 reps at time. With lots of praise and treats. You can repeat many times a day but only 5 times at sessions. Birds do best with very short training sessions. By having the yummiest treat waiting for them in cage, and lots of praise.
I start out by teaching mine what good birdie means. I start out by association of good birdie with everything that they like and makes them happy, as well as when they do things I ask. So when they are eating I tell them good birdie, when they are preening and happy I tell them good birdie, when they start to fall asleep I tell them good birdie, when I hand feed a treat i say good birdie, when they chomp on a toy ect. So they associate good birdie with being happy, and all good things.
Now you are ready to start teaching them to return to cage. The first few times make sure you have plenty of time to work on it with no stress. I start be getting their favorite food, I show it to them, and say time to go back, ( pick your phrase and always use that phrase) then I put the treat in the cage, and tap the inside perch and repeat time to go back. Then I walk behind them and point to the cage and repeat time to go back. Every step they take towards the cage, I tell them good birdie. When the pause I step toward them ( always I'm behind them with cage in front of them ) abd point towards the cage again and say time to go back. It's sort of a gentle herding. When ever they move towards the cage I stop moving towards them and praise with good birdie. Even single step towards cage im cheering them on with good birdie. Once they step in the cage I really brag who smart and great they are. Mine caught on really fast. Even my untamed budgies were returning to the cage when asked within a few days.
You may adjust or find your own way. But the above is an example of shaping behavior. And shaping behavior . Shaping works great with animals.
At this point of just tap the cage and say time go go
Back. And they quickly do. I still put a treat in the cage first after showing it to them most of the time.
But if a bird spends too much time cage, or has a negative association with the cage. You have to work to make the cage a positive safe space. And do the first part in and out of cage, and just caged for a few minutes and back out. To retrain the brain thst going to cage first always mean you be stuck in the cage for hours