After some struggling due to very few examples on (non-prospensity score) matching, I finally managed to create a code for case-control matching that worked well on a sample