So I didn't realize this until I got too close, but... turns out this object is very dense and has a high gravitational field. So I kinda got stuck on it. Oops.
If you thrust as hard as you can in one direction youll pull away from it eventually. I got stuck on it with the big mining vehicle