The prime minister has said sanctions against Russia mean Putin will not attend the summit in November 2027.