James Webb Space Telescope captures the end of planet formation