That's a female Bonelliid Spoon Worm/Echiuran - most spoon worms are harmless detritivores (good CUC), but a few (likely including yours) have a toxin (Bonellin) on their proboscis (the forked "mouth" mentioned above) and/or skin; these eat things like small pods that succumb to the toxin when crawling on/over the proboscis.
These would probably be fine to keep in the tank as long as you think your critters are smart enough not to touch the proboscis, but it may carry some risk (especially for smaller critters, and especially if your female has one or more males - which are tiny - living with it so that it could reproduce):
be aware that it is toxic (the toxin is called Bonellin, and I’m not sure about it’s effects on people), and please handle it with care and a good pair of gloves.
If you decide to keep it, I'd probably suggest running carbon and doing regular water changes to be safe.