The natal disk of PDS 70 with new planet PDS 70b (bright spot on the right ... they were also lucky to see it happen relatively nearby — a mere 366 million years light years from Earth. That’s plenty ...
And that could create a rough environment for Earth-like planets; the star's interaction with the disk of material around it is just too explosive for a planet like Earth — or Mars, for that ...