My son does the same, it drives us mad!
Our little girl did this for around 4 weeks and then it suddenly stopped (she is 17 weeks now). We tried adjusting her bedtime, as well as other internet recommendations for ‘false starts’, but it didn’t seem to consistently help. Then one day she stopped doing it, so I’m guessing it was a bit of a phase. I completely feel you, as it was very frustrating, but it will pass :)
Did you try delaying bedtime by 30min-1hr?