This is hard. Its been a long time since my birds have refused to go to bed.
My worst one was my Kiwi, he is a rescue house sparrow and once upon a time, he HATED bed time.
Maybe i got lucky because we raised him since he was without feathers, but eventually we started a routine...and things just seemed to fall into place.
We started with repeating the word bedtime in a very excited tone, and would only then introduce his fav treat mealworms (he still only gets these at bedtime) it was a condition...he only got to eat them if he went into his cage and let us close his door. then we would super excitedly praise him for going in his cage to eat them.
After awhile of this, we gave him more freedom and the opportunity to decide if he wanted to go to bed. We stopped always closing his cage door and started to leave it open after giving him his treats (and aftet lots of "bedtime! Praising.
I think he really appreciated the fact that the decision to stay in his cage or come out was up to him. It was no longer something that was forced on him.
Several times, i have even almost casually asked him to come out of his cage after the bedtime hour...sometimes he comes out for a quick fly, or a 5mins snuggle but ultimately he always goes back to bed. Lol
8yrs later he still baby beeps at me excitedly when its bedtime, so cute. He loves to snuggle, he loves his bedtime treats and he loves the lights off. It makes him feel good and bedtime makes him happy.
Probably not very helpful...but the point is...keep trying. Try something new. Make sure they feel like bedtime is not a punishment its a choice they are happy and excited to make for "themselves"