Hi @Javier Santillan ,
Agree with Olaf, suggest you using generate scripts wizard as below screenshots. In addition, suggest you use a newer version SSMS. You can get SSMS 18.12.1 from here.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".