You need the magnet to have right shape for the lines of flux to pass through the reed switch so that the leafs are pulled together. Axially like in pic.
I'm not sure of what your configuration looks like.
Standex magnets configsIf it's not ideal, a steel screw or washer can redirect/bend the flux.
A rod magnet parallel to the reed switch is the usual configuration. Use a strong magnet (rare earth) if you need range.
Not a thin disc/coin type that will not work well because the flux lines keep too close to include the reed switch, but the strong rare-earth ones can overcome this.
Why not just use a home alarm door switch/magnet? Take it apart if you have to.
Side opinion - I'm not a fan of reed switches, they are really fragile devices the glass breaks or the pin rotates etc. and I never had good luck with them.
There are low power Hall switches that are more sensitive. I made a few for an alarm (door) of mine and zero troubles for years.
Last ones I used are
A1120 are they are great I get operation at least an inch away, good sensitivity with strong magnet. But need steady power 4mA.
A3211 is micropower for cell phones etc.
You can also get a bipolar Hall sensor and use two magnets for the door up/down detect.
ESP32 has a Hall sensor built in.