SimpleUGC Mods giving error saying it found the .uplugin file in two locations

Hi,

I’m using a source build of UE-4.27.2, and trying to add mods to my project using the SimpleUGC plugin. I have tried both with the UGCExample project and with my own project, and in both instances, when running GenerateProjectFiles.bat, building the project in VS (2022), and packaging the project, it is throwing up the error:

Found 'NameOfMod' plugin in two locations 
(AbsoluteEnginePath\Projects\MyProjectName\Mods\NameOfMod.uplugin and 
AbsoluteEnginePath\Projects\MyProjectName\Mods\NameOfMod.uplugin). Plugin names 
must be unique.

It works in-editor fine, and I can see the mod in the plugins browser. If I remove the mod from the folder everything works, except obviously not having the mod content. For clarity I have my project in a folder called “Projects” in the engine root as recommended in the SimpleUGC quick start guide, and it is listing the same file location twice for the “duplicate” .uplugin files.

My first thought was that there might be a config file that lists the locations of plugins and that it might list my mod twice accidentally, but I couldn’t find any such file (I still don’t know how the engine knows there is a plugin in the Mods folder rather than the Plugins one). I’ve found where the engine code throws up that error and dug around in it for a while to no avail as well (it’s in /Engine/Source/Programs/UnrealBuildTool/System/Plugins.cs). Short of building a whole different version of the engine I don’t know what else to try, as I have found almost nothing about this error online.
Anyone seen this before or know what the issue might be?