This creature combines traits from a centipede and a worm: it's covered in chitin, has many segmented legs with mandibles and book lungs, but otherwise, it's a regular armored worm. At maximum length, these will be about the length of a football and as wide as a soda bottle ( a small soda bottle, mind you, not the big 1-liter ones).
Furthermore, this creature has a stinger and an unusual head shape: sort of like a spade, but with a drill-like point (this is a false beak made of the creature's mandibles) to aid in burrowing. Its bites and stings typically causes pain and paralysis (it can inject other poisons or acid if it wishes) in small animals and, y'know, the arm of whoever thinks it's a good idea to capture it and put it on their arm to find out how painful its sting is. It eats garbage (see below) and
My question is, what adaptations would allow this creature to survive in medieval cities? Keep in mind:
It's omnivorous and carries diseases because of its garbage diet, from which it derives its toxins.
It can burrow into soil and even wood
It's resilient and capable of regeneration like an axolotl
Good Luck!