Hi Ruedeleglise
Peanuts, whilst not as bad as mealworms are not good for hogs as they have a higher level of phosphorous to calcium. So you really need to try to wean the hog off the peanuts. Try mixing them in with other food and gradually reduce the peanuts. I’m assuming the peanuts are not whole ones.
This is some information about feeding hogs, which has a table at the end showing the calcium/phosphorous ratios for various foods.
http://www.valewildlife.org.uk/wp-content/uploads/2018/04/Feeding-wild-hedgehogs.pdf
I hope your mention of dried meal worms does not mean you are offering those. As you will see from the table, they are much worse than even peanuts and are best avoided completely.
Good luck, I hope you manage to persuade the hedgehog to eat some food that’s better for it.