Fedora use BLS (boot loader specifcations) that are in /boot/loader/entries.
grub, by default, scans that folder and adds all the entries to the menu.
/boot/loader/entries/23861aed63d748da85011d84ee28e601-6.8.10-300.fc40.x86_64.conf
/boot/loader/entries/23861aed63d748da85011d84ee28e601-6.9.2-200.fc40.x86_64.conf
/boot/loader/entries/23861aed63d748da85011d84ee28e601-0-rescue.conf
/boot/loader/entries/23861aed63d748da85011d84ee28e601-6.8.9-300.fc40.x86_64.conf