How would I get this button to stick to the right of if I made a frame of this whole thing? #figma

There are probably better ways, but I'd just wrap the first two sections you've outlined in blue in their own auto layout frame.
like this, the blue outlines are auto-layout frames. Gray boxes are components or whatever else you want to position inside of them.