Please fucking don’t. Think long and hard about why you left in the first place - you probably had a good reason.
Not all departures are due to bad things. Sometimes you want to pursue a different area of focus and your current company doesn’t have an opening like that. But maybe a few years later they do.
There are many scenarios to leave a company - in yours you were denied an avenue for self development and if the company has done that once they’ll do it again.
Not all companies are good. If one is shitty enough for you to abandon the relationships you built there it isn’t worth going back to.
I left my small company to go work for a large company since my career has only been in startups and I wanted to see how they do things at a 10k+ employee org. If I end up hating working for large companies I’d consider going back to my smaller company. Not all companies are shitty and not all departures are a burned bridge.