I read this in another answer on this site:
"and later I regretted" -- remorse is a klesha, an obscuring emotion.
my person thought it's worthy to lift the question if shame and remorse (before, while and after a deed be mind, speech or body) are generally unskillful, therefore to be abandoned, or if certain shame and remorse is actually skillful and very needed, therefore to develop and relay on it.
(Note that remorse/kukkucca, as a hindrance, falls by abounding sense-desire, end of reason for ill-will)
Feel invited to reflect, and possible share even Buddhas view on this mind qualities: An invitation of shameless making merits, so that one might not feel remorse, having not done, later.
[Note: This is a gift of Dhamma, not meant for commercial purpose or other low wordily gain by means of trade and exchange]