On the application of the regulator, the court may order the offender to pay to the regulator a sum that it thinks just and reasonable towards the costs of the prosecution (including the costs of investigating the offending and any associated costs).