Pulling an SKU into a form field

Hi, I have a query form on my product pages and need to send the SKU of that product page to my database when a form is filled out. I’ve been able to pull in the page URL but I specifically need the SKU.

Does anyone have advice on what code to use here?