The argument structure of the verb cost is:
X (goods or services) cost Y (sum of money or other value) to Z (purchaser).
The goods or services - the thing sold - is the subject of cost, so your sentence needs to be active.
In fact, cost is hardly ever used in the passive. (I couldn't find a single example in the iWeb corpus - all the examples of BE + 'cost' that it gave me were either using "cost" as a noun, or in phrases such as "cost effective"). Instead we use other strategies:
The book cost me £7.95. (normal, active)
The cost of the book [to me] was £7.95. (not the book was cost £7.95 [to me]).
It cost me £7.95 to buy the book. (not I was cost £7.95 for the book).