PSO J318.5-22 is a planet, but it doesn't orbit a star. It orbits the entire Milky Way Galaxy. We call these planet types rogue planets, or starless planets, free-floating planets, lonely planets, etc.