This is untrue. I am not sure where you get it from - but you can go look at the twitter comments (before Elon owned twitter) from the government and NGOs, and take a look at current statements from people in-theater.
(https://www.theguardian.com/world/2023/feb/09/zelenskiy-aide....)
Elon got cold feet when the Russians started threading Starlink with targeting with ASAT weapons, and when the Ukrainians (despite agreements) used starlink to remotely guide UAVs in Russia. Now that the UAVs are hitting Russia without starlink, and the Russians have backed off of threading to wipe out all American Satellites (which almost certainly lead to a nuclear confrontation since it would also blind detection systems), its less of a issue.
Elon got cold feet when the Russians started threading Starlink with targeting with ASAT weapons, and when the Ukrainians (despite agreements) used starlink to remotely guide UAVs in Russia. Now that the UAVs are hitting Russia without starlink, and the Russians have backed off of threading to wipe out all American Satellites (which almost certainly lead to a nuclear confrontation since it would also blind detection systems), its less of a issue.