How to generate recovery grub entries automatically

Note I don’t mean the dracut recovery entries (which for me just give me a “root user is locked” error), I mean similar to how on, for example, Ubuntu, when the grub entries are rebuilt it will generate recovery entries that have the recovery nomodeset flags set for that entry. I set GRUB_DISABLE_RECOVERY="false" in /etc/default/grub but that doesn’t seem to do anything (I assume by design).