Sounds like you might have a “squash vine borer”. You can learn about them by doing a google search. They’re not good.
Thank you.