Hi @platinumchest
Static could be caused by a dry joint front panel cable wiring connection on the mic input jack or perhaps the spring connector inside the mic jack hasn't got enough tension to make good contact with the mic plug when it is inserted.
Try ''gently (stress gently)'' wiggling the mic plug up and down and side to side when it is inserted and check if you can make the static stop when you hold the plug in a certain position etc.
If you can you may have to open the case to gain access to the mic jack so that you can inspect the wiring connection and if that is OK it may be the jack itself, which cannot be repaired. You would have to replace it.
The alternative is to use the mic input on the rear of the motherboard (pink jack) and check if that is static free.