Hugs to you. I understand you very well as I am going through same phase. My little boy recently turned 5 and is behaving exactly same. Initially I used to get very upset and literally used to shout on him for each and everything. Then I spoke to other parents and understood situation is same everywhere. So I started to be more patient, spoke to him and reached to a middle point where both of us agree. Also whenever I felt I am loosing my patience I start back counting to overcome it. Also dont forget the lockdown phase where kids are completely locked at home. If the child is having screen time, then try to reduce it. Also praise him for every good thing he does and keep rewarding him in between with his favourite food or play a game with him. This also helps a lot.
Hope this helps
Take care