Good afternoon,
I'm aware there's several questions like this here, but as none of them answered my problem and as I am utterly and completely lost, I figured I might as well try here.
My system information is described in https://paste.ubuntu.com/p/JNnVJ3Ft5D/, but in short: separate FAT32 sda2 boot partition at the start of the disk (with boot and esp flags, despite the partition name), followed by an sda1 Lubuntu 22.04 partition and an sda3 Win10 one. Only Lubuntu shows as an option on startup. os-prober isn't disabled in the GRUB config files, and the pastebin lists Win10 as an OS normally, so I very much have no idea of what's going on.
I tried running Windows Startup Repair via a rescue disk - I knew that'd uninstall GRUB, but I figured I could just reinstall with boot-repair immediately after - but no go. boot-repair itself hasn't been much help either, it keeps telling me "Legacy Windows detected, you might want to disable the separate boot partition", but then if I do the program instead tells me "GPT detected, please create a partition at the start of the disk like X and Y and Z, or alternatively turn the option for the separate boot partition on".
The pastebin does mention "no ESP detected" in several places, so I thought that maybe if I add the ESP flag to the FAT32 boot partition that'd help things, but apparently that does nothing?
Any and all help would be greatly appreciated.
EDIT: a commenter (@oldfred) mentioned GRUB being installed to MBR, which does seem like it could be the issue, but I don't know how to uninstall it from there. Just to make sure, I tried running boot-repair again with the purge-grub option on, but ran into the same issue of "Legacy Windows detected" yada yada (and I can't very well turn off the option for the separate partition). The corresponding BootInfoSummary is here, but nothing seems to have been done other than a regular reinstall.
Also, to be clear, all this has been done exclusively in UEFI mode. (Pretty sure boot-repair doesn't work outside of it anyway.) Windows is listed as the OS for sda3, the Windows loader files seem to be right there in the Windows system folder, and really nothing seems to be wrong - it's just that the Windows loader simply doesn't show up as an option in the GRUB menu.