From how many places does the light turn on? If there are three wires and the switch is single and not double, that means the switch is a deviator switch.
The easiest way to use a deviator switch (double pole switch) is with the Sonoff Basic R4 as long as you have space in the light fixture.
Here is the topic: Using "Magic Switch Mode", the new resource of Sonoff Basic R4, with two 3-way Switches
Now I see you wrote that you have 3 switches, but I don’t see a picture of the third switch. It should have four wires. This switch is called a crossover.