Although I cannot vouch for their quality, there are a number of grammar correction models in model hub: Models - Hugging Face 8
They seem to finetune T5 or GPT as you mentioned. However, there will never be a guarantee that the model output is 100% grammatically correct. I think a rule-based approach suits grammar the most, since it mostly follows well-defined rules.