There's two questions here: is it medical under regulations? and, is it medical electrical equipment under IEC 60601-1?
From the regulatory side, it depends on the regulation and also the manufacturer's intended purpose statements. But, it seems likely to be considered a "medical device", for example, in Europe.
For IEC 60601-1, it is not under scope if it does not contact the patient. IEC 60950-1 would be more appropriate.
Unfortunately, regulations in Europe, US, Canada, Japan, Australia don't list 950 as a recognized/harmonized standard under medical regulations or guides. So, sometimes 601 is still used. Bit of a grey area. I recommend 950 because it covers things like TNV isolation which might be applicable.