Paying people to dig holes and fill them back up increases GDP, as it is currently measured, even though that activity has no value.
Similarly, hiring an extreme number of regulators to vex entrepreneurs nominally increases GDP in the short term, even though it reduces output in the long term.
The flaw of Keynesianism is to see all government spending as “stimulus” even when it’s value destroying.