(a) An application for sanctions under this rule shall be made by motion, shall be made separately from other applications and shall describe the specific conduct alleged to violate Rule 1023.1(c).(b) No such motion shall be filed unless it includes a certification that the applicant served written notice and demand to the attorney or pro se party who signed or filed the challenged pleading, motion or other paper. The certification shall have annexed a copy of that notice and demand, which shall identify with specificity each portion of the document which is believed to violate the provisions of this rule, set forth the basis for that belief with specificity, include a demand that the document or portion of the document, be withdrawn or appropriately corrected. An application for sanctions may be filed if the challenged paper, claim, defense, contention, allegation, or denial is not withdrawn or appropriately corrected within twenty-eight days after service of the written demand. If warranted, the court may award to the party prevailing on the motion the reasonable expenses and attorney’s fees incurred in presenting or opposing the motion.(c) A motion requesting sanctions under this rule shall be filed in the trial court before the entry of final judgment.