Why am I getting "Wrong SDK type for plugin module" when making a theme/plugin?

IntelliJ idea version: 2024

Just made a new theme project using dev kit. when to run debug configuration and added one run configuration plugin type with jre as default. but I can’t run or debug it.
Also added IntelliJ platform plugin sdk


Help is appreciated no matter what.

For Internal Java Platform, please use JDK of version 21.

I forgot to answer my own question. for the run configuration set the jre not to java sdk but to intelliJ idea plugin platform sdk