epicgames launcher can't find the Unreal Engine 5.1 I have installed

I know a lot of people have asked this question, I can run the exe file directly but then the epicgames launcher won’t allow me to install plugins to the engine, it will show that no version of the engine is available