H1B visa extension

I am in US and planning to visit India in November/December. I just want to know if my H1B extension can be filed while I am in India. My current H1B petition is ending on 16th May 2022 and i have approved I140

Thanks