Hello @Bea_q151 ,
have you tried compile and restart the unreal? if you have but still do not work, try delete intermediate and script file first

After then, right click .uproject and regenerate project file. Recompile it from VS then launch the unreal.
maybe you should try that, I hope it will work