The Sword is Christ's Word
Multiple commentators explain that the 'sharp two-edged sword' symbolizes the powerful and piercing Word of Christ. It is not a literal weapon but represents His words of truth, which cut to the heart, expose sin, and judge false teaching. This imagery is intentionally used here because Christ is about to deliver a sharp reproof to the church.