The part after "?tag=" is an affiliate identifier that Amazon will automatically add. You can safely remove everything after and including the "/ref=" part and your link will still work.
In fact you don't even need the descriptive part of the link.
https://www.amazon.com/dp/B09QCP58DG will work just fine
NOTE: The above comment contains link(s) which have an affiliate marketing identifier:
amazon.com/PHOME-Headboard-Adjustable-Compatible-Headboards/dp/B09QCP58DG/ref=asc_df_B09QCP58DG/?tag=
That means that someone gets paid if you follow that link and make a purchase.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.