https://www.neowin.net/guides/how-to-permanently-restore-old-file-explorer-in-windows-11/
This guide works in all versions of Windows 11, including 24H2.
You now have the old File Explorer with its Ribbons and, let’s be honest, fewer bugs and better performance.
* Remember to backup the registry before applying any changes.