@mirzak
I’ve tried to change the script to include the required regexp module in the list of GRUB_MODULES, but the resulting BOOTX64.EFI file that created led to a halted Grub2 on startup (just shows a line cursor and nothing happens). Are there any dependent modules that need to be included besides regexp for this to work correctly? Is there a guide out there somewhere that can help me determine this?