You first turn the ancient debris into netherite scraps and by combing the netherite scraps and gold ingots, you make netherite ingots. And to make Netherite Sword in Minecraft, you need to combine the Netherite Ingots and a Diamond sword in Smithing table.