Black pepper does not contain mold.
Black pepper is made from a plant known as piper nigrum.
The piper nigrum plant is mos often sun dried but sometimes it can be oven dried to make the pepper and then it's ground down into the pepper we use.
Pepper is safe for human consumption as long as you do not eat too much of the black pepper and if you do eat too much black pepper it could cause health issues.
Black pepper can grow mold in it but it does not contain any mold when you buy it.