How Important is dorsiflexion?

Unless dorsiflexion pinches the front of your ankle and hurts during running, I wouldn’t worry about it. I would highly doubt surgery is necessary. You can stretch ligaments if that’s the limiting factor in all of this.