Created editor module (for UE5) with online manual for UE4. Everything seems fine but Rider says module is excluded

Also Rider itself can’t edit project properties to somehow include this module. What should I do?
I wish there was a solution to this - still happening in 5.2
I have the same problem with UE 5.3.2 and Rider 2023.3.3.
I found the answer in this thread.
It seems that when Target is set to Editor from Solution configuration, the module for Editor is also loaded!
In my case the module needed to be enabled in the uproject file and that caused it to no longer be excluded (a plugin with code within the project, not an engine/marketplace located plugin).
At the top center of your Rider IDE, you can see the build configuration drop list. Click it and select your target to “Editor” may work.
This reply may be too late, but may help someone in the future.
In Source/UE5Test, there is a Build.cs file with the following section:
PrivateDependencyModuleNames.AddRange(new string[] { });
I added the new module name like this:
PrivateDependencyModuleNames.AddRange(new string[] { "UE5TestEditor" });
After adding this, the issue was resolved.
