Yep, bristle worm. Getting stung will hurt, that's for sure, not sure on how much else will/could happen. But don't worry, they're common LR
hitchhikers and a good janitor.
Now that you've seen/been stung by them, always wear gloves when moving rock in the tank now as a precaution