It's super hard but I think the main thing is to a) talk about pricing early with your customers or leads and b) keep talking about it over time and iterate if necessary.
There's a great book called "Monetizing Innovation" that I can't recommend enough. I basically explains how to have conversations about the "willingness to pay" effectively. We took huge inspiration from this book when building the best practices of our user interview AI on AskMore.ai.
Look at competitor, if you are product similar then charge similar price. if you are product is better then more. If you have new proudct then compare it their alternative solution.
I mean they must have using something else before your product, right?
At the end, it is all about testing. You can't figure out right price in one shot