Project could not be compiled error

I recommend you search the internet on that error message.

For instance, this is similar:
https://debugah.com/solved-rider-compile-ue5-project-error-expecting-to-find-a-type-to-be-declared-in-a-module-rules-named-rd-in-ue5rules-26643/

Looks like he solved it by putting the plugin in the game’s plugin folder instead of the engine plugins… I don’t know

Hope it helps!