Voting machines cannot be hacked, this nonsense was invented by Trump.
ANYTHING can be hacked.
Yes, this is technically true but its much easier to hack into something like a PC connected to the internet rather than a closed off system like a voting machine since you have more ways of getting into it - the only way to put dodgy code in is by physically interacting with the machine since there'll be no network access, and that's hard to do in a very exposed public space like a polling station.
Although I'm personally a "do everything on paper" guy myself: or at least have the computer output some kind of printed ballot that can act as a check for a recount of a close election or backup if there's some kind of technical problem. A perfect solution for people with disabilities that make old fashioned paper ballots very hard but if you wanted to keep a paper-based system would be to have machines available that printed a paper ballot out, with that being checked by the voter before it is submitted and then used in the count so everyone can guarantee that it was 100% correct.