When I get in any squat position and come out of the hole it hurts. I have my Olympic shoes and I stretch and foam role but all it does is cause pain
I'd be really curious whether your weight is coming forward at all. Sometimes people's center of gravity can migrate a little bit too far forward while squatting. Olympic shoes are nice because they allow your torso to remain more upright, but it's also very easy with them to accidentally fall a bit forward. If you feel yourself pushing through your toes at all when you're trying to get out of the hole, that's something that may help if you're able to correct that. *IF* that is the issue, that would correct the root of the problem, but of course you'd have to deal with the symptoms right now.
Another possibility is that, since you're saying that it specifically happens during ATG squats, that it's a posterior tibialis problem, though that usually manifests as inner ankle/inner lower calf pain. So as you probably know, ATG squats require a good amount of dorsiflexion, and if you don't have that ankle flexibility, your foot will pronate to "fake" that flexibility. It should be less of an issue with your Olympic shoes though, and as I said, the pain probably isn't in quite the right spot.
You're probably on the right track with foam rolling. You could also add eccentric calf raises if you wanted, though honestly it's not like the tissues aren't being loaded with squatting, especially if you walk it out. You could also look into seeing someone who is able to perform Active Release Technique (or similar soft tissue therapy), which is often helpful with calf injuries. Also, rather than stretching (especially don't stretch beforehand...if you want to stretch after that's fine, but not before your workout), you may be better served with a longer warmup (or doing some eccentric calf raises beforehand...just bodyweight to warm up, if you want to do them heavier after squatting that's fine).