Narrowing post #120, because the general version has more than one answer.
Semaglutide's structure is a modified backbone with a C18 diacid attached through a spacer. The acylation is the reason for the long half-life and it is also the reason a plain sequence comparison against native GLP-1 is misleading about how the molecule behaves.