On mine there's a little plastic clip that holds the cable into the slide, it's bright green I think - hard to miss lol.
Or is the cable outer coming loose from the carb top?
@ricky0115 just took the part out it already has a notch built in that stops the cable from sliding out so I’m a little confused as to how it’s actually coming loose I’m gonna try a stiffer spring