I have this exact same issue / question. The 'Startsession' middleware resets the session and therefore resets the set flash messages (it seems).
Really hope someone found out how to get both 'normal' sessions and flash-messages to work properly in Laravel 11.