What to do if the team is unable to finish the items before the Sprint, is the Sprint extended ?
A Sprint ends when the timebox expires, not when the work is finished.
Unfinished Sprint Backlog Items are returned to the Product Backlog and can be addressed by the Product Owner by re-ordering the Product Backlog allowing the item to be worked on in a future Sprint.
This is a more effective way of working than extending the Sprint because ensuring a consistent Sprint length:
The Product Backlog should give transparency over the work that is believed to remain for the Product. The Developers should re-estimate any unfinished work there accordingly. The Product Owner may — or may not — then order it as a priority matter for consideration in the next Sprint Planning event.
Scrum.org (2022) What to do if the team cannot finish all the items before the Sprint? Online at: https://www.scrum.org/forum/scrum-forum/6171/what-do-if-team-cannot-finish-all-items-sprint
All fields are required.