In order to stop liking someone, you need to get some space. As much as it may sadden you to stop seeing this person, spending consistent or regular time with them will make it difficult for you to get over them. Constant triggers and new experiences with them will only remind you why you love this person so much or even reinforce your feelings, and will give you more “moments” to replay in your head.
Cut off fuel at the source. Try as much as possible to spend less time with this person. If you can’t avoid them completely (for example, if they’re a co-worker, classmate, or part of a friend group you see often), keep your distance during any time you share space. You don’t need to be rude or completely ignore them, of course, but keep the conversation to a minimum and try to avoid any one-on-one time together.