Hey there! As someone who grew up speaking American English, I'm not sure I've ever heard of "knack of" or "knack to" being used. That being said, if you used "for" instead of "of" in your 1. and 2. examples, it would look normal to me. I'm not positive about 4. though; that one looks correct the way you have it.
Additionally, I found this thread discussing the usages of "knack":
https://english.stackexchange.com/questions/148170/how-do-you-use-knack-in-a-sentence
0 voted
June 22, 2020
0
Answered
I second Natalie's answer but would like to add buffalo wings, which is my personal favorite type of "American" food.