This is the expected behavior at the moment. It may change in future. More info in the comment section.
Since this morning, every time I receive a message in an archived chat which is included in a folder , it stays archived.
Telegram Android 9.6.7 (33639), Google Pixel 6 Pro, 13 (33)