People often have this kind of psychology. The more you value him, the less he cares about you. When appropriate, you should have a certain high profile. Make him afraid that you will leave him.
When the other two get along, leave some space for each other. Just like flying a kite. You just hold the rope. No matter how high it flies, no matter how high it is, it is also controlled by your string.
This is my personal opinion, I hope it will help you.