Bees born through breeding cannot find a way to beehive, even if there's four beehive next to it.
They wander around the beehive or fly far away from it.
I've tried it in the same way few times but even the bees entered beehive normally at first acted weird later when I saw them again.
I've prepared and placed 4 beehives and 4 campfire before breed the bees. The bees used for breeding were spawned through the tree sapling planted next to the flower.
Here's the video of the problematic bee:
Linked issues
Comments

Yes it seems similar but I frequently get this bug in another realm/multi server I played. Some bees might work as normal but there always were strange bees that refuse to get in their hive.
I even found some bees left their hive wandering in the place almost 200 blocks away

Thank you for your report!
We're tracking this issue in MC-187920, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
๐ Bug Tracker Guidelines โ ๐ฌ Community Support โ ๐ง Mojang Support
๐ Project Summary โ โ๏ธ Feedback and Suggestions โ ๐ Game Wiki
-- I am a bot. This action was performed automatically! The ticket was resolved by one of our moderators, and I left this message to give more information to you.
This appears a lot similar to the behavior mentioned inย MC-187920. With that being said, wouldย MC-187920ย happen to describe your issue?