The VST2 SDK had to be removed for legal changes in the License agreement.
Before October 2019 JUCE was allowed to bundle VST2 so all worked out of the box.
Since building and deploying VST2 plugins requires a special agreement with Steinberg (which you cannot get any more), you need to supply the VST2 SDK yourself.
See this thread: