Is there a function to search for a wildcard value when calling a shortcode?

The issue I worked out was that I’d previously built another form on my staging site using CCF, I went through phpmyadmin posts and deleted everything ccf-based then rebuilt my form and since there were no previous forms this form was assigned the id 122 and my template now works 🙂

It would still be good to know if there’s a way to search for wildcards using php as that would be a more scaleable and future proof solution