Reproduced 3/3 times. Issue did not occur in //UE5/Release-5.0 - CL 20979098 Binary. Confirmed a Regression.
Actual Result: A pop-up window eventually appears saying "Failed to compile plugin source code," and Plugin is not created
Expected Result: Plugin is successfully created.
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-171182 in the post.