No code is perfect and people can get really self aware about that. I know I have had imposter syndrome in the past where I thought my code was shit, but people always complemented me on the result. Opening up the code can lead to people seeing how shit it really is and call you out on it. The code is probably fine, but it’s a legit fear.
This is a noob fear. Seasoned devs know all code is shit ;)