My earring stud is stuck inside my ear. I tried pushing it back up to the front but I can't because the hole seems to be closed up and it hurts too much to do so. Is there anyway I could just pull the whole thing out through the back or will that tear my

You need. to consult a doctor. Removal usually requires a local anesthetic, because it is usually painful.
See your Doc. If the hole has closed it needs to be numbed up and cut open to get the stud out. Pushing it through may create a bigger whole and greater scar. It has to come out though because it will get infected.